fix: return code validation issue
This commit is contained in:
parent
82c4ec147a
commit
ea4b9ac5a9
|
@ -258,7 +258,7 @@ int32_t qwAddTaskCtxImpl(QW_FPARAMS_DEF, bool acquire, SQWTaskCtx **ctx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
atomic_add_fetch_64(&gQueryMgmt.stat.taskInitNum, 1);
|
(void)atomic_add_fetch_64(&gQueryMgmt.stat.taskInitNum, 1);
|
||||||
|
|
||||||
if (acquire && ctx) {
|
if (acquire && ctx) {
|
||||||
QW_RET(qwAcquireTaskCtx(QW_FPARAMS(), ctx));
|
QW_RET(qwAcquireTaskCtx(QW_FPARAMS(), ctx));
|
||||||
|
@ -283,7 +283,7 @@ void qwFreeTaskHandle(SQWTaskCtx *ctx) {
|
||||||
qDestroyTask(otaskHandle);
|
qDestroyTask(otaskHandle);
|
||||||
taosDisableMemPoolUsage();
|
taosDisableMemPoolUsage();
|
||||||
|
|
||||||
atomic_add_fetch_64(&gQueryMgmt.stat.taskExecDestroyNum, 1);
|
(void)atomic_add_fetch_64(&gQueryMgmt.stat.taskExecDestroyNum, 1);
|
||||||
|
|
||||||
qDebug("task handle destroyed");
|
qDebug("task handle destroyed");
|
||||||
}
|
}
|
||||||
|
@ -297,7 +297,7 @@ void qwFreeSinkHandle(SQWTaskCtx *ctx) {
|
||||||
dsDestroyDataSinker(osinkHandle);
|
dsDestroyDataSinker(osinkHandle);
|
||||||
QW_SINK_DISABLE_MEMPOOL();
|
QW_SINK_DISABLE_MEMPOOL();
|
||||||
|
|
||||||
atomic_add_fetch_64(&gQueryMgmt.stat.taskSinkDestroyNum, 1);
|
(void)atomic_add_fetch_64(&gQueryMgmt.stat.taskSinkDestroyNum, 1);
|
||||||
|
|
||||||
qDebug("sink handle destroyed");
|
qDebug("sink handle destroyed");
|
||||||
}
|
}
|
||||||
|
@ -430,7 +430,7 @@ int32_t qwDropTaskCtx(QW_FPARAMS_DEF) {
|
||||||
|
|
||||||
QW_TASK_DLOG_E("task ctx dropped");
|
QW_TASK_DLOG_E("task ctx dropped");
|
||||||
|
|
||||||
atomic_add_fetch_64(&gQueryMgmt.stat.taskDestroyNum, 1);
|
(void)atomic_add_fetch_64(&gQueryMgmt.stat.taskDestroyNum, 1);
|
||||||
|
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue