[td-225] remove u_malloc

This commit is contained in:
Haojun Liao 2020-07-04 16:39:52 +08:00
parent 1f172151b2
commit 8beba3a325
1 changed files with 7 additions and 5 deletions

View File

@ -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)