mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix isCompacting flag lost after segment clone (#18248)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
84d73bd618
commit
e5fe46124b
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user