enh: print vgId in error msg within syncNodeCommit

This commit is contained in:
Benguang Zhao 2022-10-11 15:26:43 +08:00
parent b6c31ee67d
commit c70d10334c
1 changed files with 1 additions and 1 deletions

View File

@ -3047,7 +3047,7 @@ int32_t syncNodeCommit(SSyncNode* ths, SyncIndex beginIndex, SyncIndex endIndex,
} else { } else {
code = ths->pLogStore->syncLogGetEntry(ths->pLogStore, i, &pEntry); code = ths->pLogStore->syncLogGetEntry(ths->pLogStore, i, &pEntry);
if (code != 0) { if (code != 0) {
sError("failed to get log entry since %s. index:%lld", tstrerror(terrno), i); sError("vgId:%d, failed to get log entry since %s. index:%lld", ths->vgId, tstrerror(terrno), i);
return -1; return -1;
} }
ASSERT(pEntry != NULL); ASSERT(pEntry != NULL);