提交 17b5df00 编写于 作者: dengyihao's avatar dengyihao

fix invalid vgroup id

上级 69fab699
...@@ -906,7 +906,7 @@ int32_t ctgCallUserCb(void* param) { ...@@ -906,7 +906,7 @@ int32_t ctgCallUserCb(void* param) {
} }
void ctgUpdateJobErrCode(SCtgJob* pJob, int32_t errCode) { void ctgUpdateJobErrCode(SCtgJob* pJob, int32_t errCode) {
if (!NEED_CLIENT_HANDLE_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); int32_t origCode = atomic_load_32(&pJob->jobResCode);
if (TSDB_CODE_SUCCESS == origCode) { if (TSDB_CODE_SUCCESS == origCode) {
...@@ -916,11 +916,11 @@ void ctgUpdateJobErrCode(SCtgJob* pJob, int32_t errCode) { ...@@ -916,11 +916,11 @@ void ctgUpdateJobErrCode(SCtgJob* pJob, int32_t errCode) {
origCode = atomic_load_32(&pJob->jobResCode); origCode = atomic_load_32(&pJob->jobResCode);
} }
if (NEED_CLIENT_HANDLE_ERROR(origCode)) { if (NEED_CLIENT_REFRESH_VG_ERROR(origCode)) {
return; return;
} }
if (NEED_CLIENT_HANDLE_ERROR(errCode)) { if (NEED_CLIENT_REFRESH_VG_ERROR(errCode)) {
atomic_store_32(&pJob->jobResCode, errCode); atomic_store_32(&pJob->jobResCode, errCode);
goto _return; goto _return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册