Pārlūkot izejas kodu

Use 0 as the allocator id if unknown

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 13 gadi atpakaļ
vecāks
revīzija
b752aef45c
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      roxie/ccd/ccdqueue.cpp

+ 1 - 3
roxie/ccd/ccdqueue.cpp

@@ -34,8 +34,6 @@
 #include <cppunit/extensions/HelperMacros.h>
 #endif
 
-#define MESSAGE_UNPACKER_ID 1
-
 CriticalSection ibytiCrit; // CAUTION - not safe to use spinlocks as real-time thread accesses
 CriticalSection queueCrit;
 unsigned channels[MAX_CLUSTER_SIZE];
@@ -2231,7 +2229,7 @@ public:
         assertex(pos + length <= datalen);
         void * cur = ((char *) data) + pos;
         pos += length;
-        void * ret = rowManager->allocate(length, MESSAGE_UNPACKER_ID);
+        void * ret = rowManager->allocate(length, 0);
         memcpy(ret, cur, length);
         //No need for finalize since only contains plain data.
         return ret;