refactor(sync): print fatal log when commit error

This commit is contained in:
Minghao Li 2022-10-31 16:30:42 +08:00
parent 79bb5f8293
commit 6b74412994
1 changed files with 1 additions and 0 deletions

View File

@ -3380,6 +3380,7 @@ int32_t syncNodeDoCommit(SSyncNode* ths, SyncIndex beginIndex, SyncIndex endInde
// ASSERT(pEntry != NULL);
if (code != 0 || pEntry == NULL) {
syncNodeErrorLog(ths, "get log entry error");
sFatal("vgId:%d, get log entry %" PRId64 " error when commit since %s", ths->vgId, i, terrstr());
continue;
}
}