enh: send rsp msg on rejecting snap replication due to smaller term

This commit is contained in:
Benguang Zhao 2023-12-28 17:26:46 +08:00
parent 2526df745e
commit d83f85bf26
1 changed files with 1 additions and 0 deletions

View File

@ -1001,6 +1001,7 @@ int32_t syncNodeOnSnapshot(SSyncNode *pSyncNode, SRpcMsg *pRpcMsg) {
sRError(pReceiver, "reject snap replication with smaller term. msg term:%" PRId64 ", seq:%d", pMsg->term,
pMsg->seq);
terrno = TSDB_CODE_SYN_MISMATCHED_SIGNATURE;
syncSnapSendRsp(pReceiver, pMsg, NULL, 0, 0, terrno);
return -1;
}