coverage: add explain.c
This commit is contained in:
parent
dfd1b5ccaf
commit
b3a6fa9c12
|
@ -540,12 +540,14 @@ int32_t mndSetConsumerCommitLogs(SMnode *pMnode, STrans *pTrans, SMqConsumerObj
|
||||||
|
|
||||||
static void *topicNameDup(void *p) { return taosStrdup((char *)p); }
|
static void *topicNameDup(void *p) { return taosStrdup((char *)p); }
|
||||||
|
|
||||||
|
#ifdef BUILD_NO_CALL
|
||||||
static void freeItem(void *param) {
|
static void freeItem(void *param) {
|
||||||
void *pItem = *(void **)param;
|
void *pItem = *(void **)param;
|
||||||
if (pItem != NULL) {
|
if (pItem != NULL) {
|
||||||
taosMemoryFree(pItem);
|
taosMemoryFree(pItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int32_t mndProcessSubscribeReq(SRpcMsg *pMsg) {
|
int32_t mndProcessSubscribeReq(SRpcMsg *pMsg) {
|
||||||
SMnode *pMnode = pMsg->info.node;
|
SMnode *pMnode = pMsg->info.node;
|
||||||
|
|
|
@ -433,10 +433,12 @@ static int32_t vnodeAsyncLaunchWorker(SVAsync *async) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef BUILD_NO_CALL
|
||||||
int32_t vnodeAsync(SVAsync *async, EVAPriority priority, int32_t (*execute)(void *), void (*complete)(void *),
|
int32_t vnodeAsync(SVAsync *async, EVAPriority priority, int32_t (*execute)(void *), void (*complete)(void *),
|
||||||
void *arg, int64_t *taskId) {
|
void *arg, int64_t *taskId) {
|
||||||
return vnodeAsyncC(async, 0, priority, execute, complete, arg, taskId);
|
return vnodeAsyncC(async, 0, priority, execute, complete, arg, taskId);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int32_t vnodeAsyncC(SVAsync *async, int64_t channelId, EVAPriority priority, int32_t (*execute)(void *),
|
int32_t vnodeAsyncC(SVAsync *async, int64_t channelId, EVAPriority priority, int32_t (*execute)(void *),
|
||||||
void (*complete)(void *), void *arg, int64_t *taskId) {
|
void (*complete)(void *), void *arg, int64_t *taskId) {
|
||||||
|
|
|
@ -400,6 +400,9 @@ class TDTestCase:
|
||||||
|
|
||||||
self.explain_check()
|
self.explain_check()
|
||||||
|
|
||||||
|
# coverage explain.c add
|
||||||
|
tdSql.query(f"explain verbose true select * from {dbname}.stb1 partition by c1 order by c2")
|
||||||
|
|
||||||
def __test_error(self, dbname=DBNAME):
|
def __test_error(self, dbname=DBNAME):
|
||||||
|
|
||||||
ratio = random.uniform(0.001,1)
|
ratio = random.uniform(0.001,1)
|
||||||
|
|
Loading…
Reference in New Issue