[td-225] remove u_malloc
This commit is contained in:
parent
1f172151b2
commit
8beba3a325
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue