refacotr(sync): modify sync-snapshot
This commit is contained in:
parent
74b48e6df8
commit
27f690fd0a
|
@ -452,7 +452,7 @@ int32_t syncEndSnapshot(int64_t rid) {
|
|||
SSyncLogStoreData* pData = pSyncNode->pLogStore->data;
|
||||
code = walEndSnapshot(pData->pWal);
|
||||
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);
|
||||
return -1;
|
||||
|
|
|
@ -76,7 +76,7 @@ int32_t syncNodeTimerRoutine(SSyncNode* ths) {
|
|||
SSyncLogStoreData* pData = ths->pLogStore->data;
|
||||
int32_t code = walEndSnapshot(pData->pWal);
|
||||
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;
|
||||
} else {
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue