未验证 提交 0ca1d55d 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #19696 from taosdata/FIX/TD-22081-main

fix: round lastApplyIndex up to beginIndex -1 in syncBeginSnapshot
......@@ -306,7 +306,7 @@ int32_t syncBeginSnapshot(int64_t rid, int64_t lastApplyIndex) {
if (pSyncNode->replicaNum > 1) {
// multi replicas
lastApplyIndex -= SYNC_VNODE_LOG_RETENTION;
lastApplyIndex = TMAX(lastApplyIndex - SYNC_VNODE_LOG_RETENTION, beginIndex - 1);
if (pSyncNode->state == TAOS_SYNC_STATE_LEADER) {
pSyncNode->minMatchIndex = syncMinMatchIndex(pSyncNode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册