未验证 提交 e5fe4612 编写于 作者: C congqixia 提交者: GitHub

Fix isCompacting flag lost after segment clone (#18248)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 84d73bd6
......@@ -191,6 +191,8 @@ func (s *SegmentInfo) Clone(opts ...SegmentInfoOption) *SegmentInfo {
currRows: s.currRows,
allocations: s.allocations,
lastFlushTime: s.lastFlushTime,
isCompacting: s.isCompacting,
//cannot copy size, since binlog may be changed
}
for _, opt := range opts {
opt(cloned)
......@@ -205,6 +207,8 @@ func (s *SegmentInfo) ShadowClone(opts ...SegmentInfoOption) *SegmentInfo {
currRows: s.currRows,
allocations: s.allocations,
lastFlushTime: s.lastFlushTime,
isCompacting: s.isCompacting,
size: s.size,
}
for _, opt := range opts {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册