diff --git a/source/libs/sync/src/syncMain.c b/source/libs/sync/src/syncMain.c index d07b4d8b27f0a7c06e5a2749c50f57c75f6ed098..0d7306e4fdcc4c132373aa2e665ca28b33b855b6 100644 --- a/source/libs/sync/src/syncMain.c +++ b/source/libs/sync/src/syncMain.c @@ -222,7 +222,6 @@ SyncIndex syncMinMatchIndex(SSyncNode* pSyncNode) { int32_t syncBeginSnapshot(int64_t rid, int64_t lastApplyIndex) { SSyncNode* pSyncNode = syncNodeAcquire(rid); if (pSyncNode == NULL) { - terrno = TSDB_CODE_SYN_INTERNAL_ERROR; sError("sync begin snapshot error"); return -1; }