Setup lastSyncTs when add segment to avoid sync next timetick (#20920)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2022-12-01 12:29:16 +08:00 committed by GitHub
parent a20770c172
commit 82fe655032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,6 +209,7 @@ func (c *ChannelMeta) addSegment(req addSegmentReq) error {
historyInsertBuf: make([]*BufferData, 0),
historyDeleteBuf: make([]*DelDataBuf, 0),
startPos: req.startPos,
lastSyncTs: req.recoverTs,
}
seg.setType(req.segType)
// Set up pk stats