提交 27f690fd 编写于 作者: M Minghao Li

refacotr(sync): modify sync-snapshot

上级 74b48e6d
...@@ -452,7 +452,7 @@ int32_t syncEndSnapshot(int64_t rid) { ...@@ -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;
......
...@@ -76,7 +76,7 @@ int32_t syncNodeTimerRoutine(SSyncNode* ths) { ...@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册