提交 8beba3a3 编写于 作者: H Haojun Liao

[td-225] remove u_malloc

上级 1f172151
...@@ -89,16 +89,18 @@ typedef struct { ...@@ -89,16 +89,18 @@ typedef struct {
STSCursor cur; STSCursor cur;
} SQueryStatusInfo; } SQueryStatusInfo;
#if 0
static UNUSED_FUNC void *u_malloc (size_t __size) { static UNUSED_FUNC void *u_malloc (size_t __size) {
// uint32_t v = rand(); uint32_t v = rand();
// if (v % 5 <= 1) { if (v % 5 <= 1) {
// return NULL; return NULL;
// } else { } else {
return malloc(__size); return malloc(__size);
// } }
} }
#define malloc u_malloc #define malloc u_malloc
#endif
#define CLEAR_QUERY_STATUS(q, st) ((q)->status &= (~(st))) #define CLEAR_QUERY_STATUS(q, st) ((q)->status &= (~(st)))
#define GET_NUM_OF_TABLEGROUP(q) taosArrayGetSize((q)->tableqinfoGroupInfo.pGroupList) #define GET_NUM_OF_TABLEGROUP(q) taosArrayGetSize((q)->tableqinfoGroupInfo.pGroupList)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册