From 82fe655032bd3a00dabb720026c46f520b0b259f Mon Sep 17 00:00:00 2001 From: congqixia Date: Thu, 1 Dec 2022 12:29:16 +0800 Subject: [PATCH] Setup lastSyncTs when add segment to avoid sync next timetick (#20920) Signed-off-by: Congqi Xia Signed-off-by: Congqi Xia --- internal/datanode/channel_meta.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/datanode/channel_meta.go b/internal/datanode/channel_meta.go index 3251120166..95364ed793 100644 --- a/internal/datanode/channel_meta.go +++ b/internal/datanode/channel_meta.go @@ -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