Merge pull request #28494 from taosdata/fix/vnode-sync-commit

fix(vnode/commit): fix sync commit log output
This commit is contained in:
Hongze Cheng 2024-10-25 13:09:19 +08:00 committed by GitHub
commit b5b698a76c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -409,7 +409,12 @@ int32_t vnodeSyncCommit(SVnode *pVnode) {
vnodeAWait(&pVnode->commitTask);
_exit:
vError("vgId:%d, %s failed at line %d since %s", TD_VID(pVnode), __func__, lino, tstrerror(code));
if (code) {
vError("vgId:%d, %s failed at line %d since %s", TD_VID(pVnode), __func__, lino, tstrerror(code));
} else {
vInfo("vgId:%d, sync commit end", TD_VID(pVnode));
}
return code;
}