enh: taosMsleep 1 on syncLogStorePersist failure

This commit is contained in:
Benguang Zhao 2023-06-20 19:52:29 +08:00
parent 1f21e769e5
commit d31ee66d63
1 changed files with 1 additions and 0 deletions

View File

@ -482,6 +482,7 @@ int64_t syncLogBufferProceed(SSyncLogBuffer* pBuf, SSyncNode* pNode, SyncTerm* p
if (syncLogStorePersist(pLogStore, pNode, pEntry) < 0) { if (syncLogStorePersist(pLogStore, pNode, pEntry) < 0) {
sError("vgId:%d, failed to persist sync log entry from buffer since %s. index:%" PRId64, pNode->vgId, terrstr(), sError("vgId:%d, failed to persist sync log entry from buffer since %s. index:%" PRId64, pNode->vgId, terrstr(),
pEntry->index); pEntry->index);
taosMsleep(1);
goto _out; goto _out;
} }
ASSERT(pEntry->index == pBuf->matchIndex); ASSERT(pEntry->index == pBuf->matchIndex);