diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 89081ed8145dc95d5f07bfe04bdaeba68d911404..8e0537016a900d32c6771e39f52ce8e1af73bf85 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -87,6 +87,17 @@ typedef struct { STSCursor cur; } SQueryStatusInfo; +static UNUSED_FUNC void *u_malloc (size_t __size) { +// uint32_t v = rand(); +// if (v % 5 <= 1) { +// return NULL; +// } else { + return malloc(__size); +// } +} + +#define malloc u_malloc + #define CLEAR_QUERY_STATUS(q, st) ((q)->status &= (~(st))) #define GET_NUM_OF_TABLEGROUP(q) taosArrayGetSize((q)->tableqinfoGroupInfo.pGroupList) #define GET_TABLEGROUP(q, _index) ((SArray*) taosArrayGetP((q)->tableqinfoGroupInfo.pGroupList, (_index)))