From 27f690fd0ae534aaf603a2ffd1c9854f3204cce0 Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Thu, 20 Oct 2022 14:57:49 +0800 Subject: [PATCH] refacotr(sync): modify sync-snapshot --- source/libs/sync/src/syncMain.c | 2 +- source/libs/sync/src/syncTimeout.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/sync/src/syncMain.c b/source/libs/sync/src/syncMain.c index bb93248b51..56dcc054f4 100644 --- a/source/libs/sync/src/syncMain.c +++ b/source/libs/sync/src/syncMain.c @@ -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; diff --git a/source/libs/sync/src/syncTimeout.c b/source/libs/sync/src/syncTimeout.c index 18c381a4e6..ac4ea2344b 100644 --- a/source/libs/sync/src/syncTimeout.c +++ b/source/libs/sync/src/syncTimeout.c @@ -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 { -- GitLab