瀏覽代碼

Use 0 as the allocator id if unknown

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 13 年之前
父節點
當前提交
b752aef45c
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      roxie/ccd/ccdqueue.cpp

+ 1 - 3
roxie/ccd/ccdqueue.cpp

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