提交 5b7b8a97 编写于 作者: dengyihao's avatar dengyihao

fix invalid vgroup id

上级 17b5df00
...@@ -908,26 +908,9 @@ int32_t ctgCallUserCb(void* param) { ...@@ -908,26 +908,9 @@ int32_t ctgCallUserCb(void* param) {
void ctgUpdateJobErrCode(SCtgJob* pJob, int32_t errCode) { void ctgUpdateJobErrCode(SCtgJob* pJob, int32_t errCode) {
if (!NEED_CLIENT_REFRESH_VG_ERROR(errCode) || errCode == TSDB_CODE_SUCCESS) return; if (!NEED_CLIENT_REFRESH_VG_ERROR(errCode) || errCode == TSDB_CODE_SUCCESS) return;
int32_t origCode = atomic_load_32(&pJob->jobResCode);
if (TSDB_CODE_SUCCESS == origCode) {
if (origCode == atomic_val_compare_exchange_32(&pJob->jobResCode, origCode, errCode)) {
goto _return;
}
origCode = atomic_load_32(&pJob->jobResCode);
}
if (NEED_CLIENT_REFRESH_VG_ERROR(origCode)) {
return;
}
if (NEED_CLIENT_REFRESH_VG_ERROR(errCode)) {
atomic_store_32(&pJob->jobResCode, errCode); atomic_store_32(&pJob->jobResCode, errCode);
goto _return;
}
return;
_return:
qDebug("QID:0x%" PRIx64 " ctg job errCode updated to %s", pJob->queryId, tstrerror(errCode)); qDebug("QID:0x%" PRIx64 " ctg job errCode updated to %s", pJob->queryId, tstrerror(errCode));
return;
} }
int32_t ctgHandleTaskEnd(SCtgTask* pTask, int32_t rspCode) { int32_t ctgHandleTaskEnd(SCtgTask* pTask, int32_t rspCode) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册