fix: set ack of response properly in syncSnapSendRsp

This commit is contained in:
Benguang Zhao 2023-11-01 15:11:01 +08:00
parent 4cf97ef6ae
commit 7852b2cecf
1 changed files with 1 additions and 1 deletions

View File

@ -861,7 +861,7 @@ static int32_t syncSnapSendRsp(SSyncSnapshotReceiver *pReceiver, SyncSnapshotSen
pRspMsg->lastIndex = pMsg->lastIndex;
pRspMsg->lastTerm = pMsg->lastTerm;
pRspMsg->startTime = pMsg->startTime;
pRspMsg->ack = pReceiver->ack; // receiver maybe already closed
pRspMsg->ack = pMsg->seq;
pRspMsg->code = code;
pRspMsg->snapBeginIndex = pReceiver->snapshotParam.start;