No need to set the lenght of the buffer
authorquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Nov 2013 15:57:49 +0000 (15:57 +0000)
committerquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Nov 2013 15:57:49 +0000 (15:57 +0000)
MONITOR/AliRecoServerThread.cxx

index df12607..e490dc0 100644 (file)
@@ -109,11 +109,8 @@ void AliRecoServerThread::SendStreamerInfos(TMessage* mess, zmq::socket_t *sock)
          delete minilist;
          if (messinfo.GetStreamerInfos())
             messinfo.GetStreamerInfos()->Clear();
-#if ROOT_VERSION_CODE < ROOT_VERSION(5,34,10)           
-           messinfo.SetLength();
-#endif
-           
-          int bufsize = messinfo.Length();
+          
+                                       int bufsize = messinfo.Length();
                char* buf = (char*) malloc(bufsize * sizeof(char));
           memcpy(buf, messinfo.Buffer(), bufsize);
 
@@ -138,9 +135,6 @@ void AliRecoServerThread::SendEvent(AliESDEvent* event, zmq::socket_t* socket)
   TMessage::EnableSchemaEvolutionForAll(kTRUE);
   SendStreamerInfos(&tmess, socket);
 
-#if ROOT_VERSION_CODE < ROOT_VERSION(5,34,10)           
-  tmess.SetLength();
-#endif
   int bufsize = tmess.Length();
   char* buf = (char*) malloc(bufsize * sizeof(char));
   memcpy(buf, tmess.Buffer(), bufsize);