refacotr(sync): modify sync-snapshot

This commit is contained in:
Minghao Li 2022-10-20 14:57:49 +08:00
parent 74b48e6df8
commit 27f690fd0a
2 changed files with 2 additions and 2 deletions

View File

@ -452,7 +452,7 @@ int32_t syncEndSnapshot(int64_t rid) {
SSyncLogStoreData* pData = pSyncNode->pLogStore->data; SSyncLogStoreData* pData = pSyncNode->pLogStore->data;
code = walEndSnapshot(pData->pWal); code = walEndSnapshot(pData->pWal);
if (code != 0) { if (code != 0) {
sError("vgId:%d, wal end snapshot error since:%s", terrstr(terrno)); sError("vgId:%d, wal snapshot end error since:%s", terrstr(terrno));
taosReleaseRef(tsNodeRefId, pSyncNode->rid); taosReleaseRef(tsNodeRefId, pSyncNode->rid);
return -1; return -1;

View File

@ -76,7 +76,7 @@ int32_t syncNodeTimerRoutine(SSyncNode* ths) {
SSyncLogStoreData* pData = ths->pLogStore->data; SSyncLogStoreData* pData = ths->pLogStore->data;
int32_t code = walEndSnapshot(pData->pWal); int32_t code = walEndSnapshot(pData->pWal);
if (code != 0) { if (code != 0) {
sError("vgId:%d, wal end snapshot error since:%s", terrstr(terrno)); sError("vgId:%d, wal snapshot end error since:%s", terrstr(terrno));
return -1; return -1;
} else { } else {
do { do {