mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 19:08:30 +08:00
Do compressBinlog to ensure that reloadFromKV will fill binlogs' logID after datacoord restarts. issue: https://github.com/milvus-io/milvus/issues/34059 pr: https://github.com/milvus-io/milvus/pull/34060 --------- Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
83ff759195
commit
2fda43e49f
@ -219,29 +219,23 @@ func (kc *Catalog) applyBinlogInfo(segments []*datapb.SegmentInfo, insertLogs, d
|
||||
for _, segmentInfo := range segments {
|
||||
if len(segmentInfo.Binlogs) == 0 {
|
||||
segmentInfo.Binlogs = insertLogs[segmentInfo.ID]
|
||||
} else {
|
||||
err = binlog.CompressFieldBinlogs(segmentInfo.Binlogs)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err = binlog.CompressFieldBinlogs(segmentInfo.Binlogs); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(segmentInfo.Deltalogs) == 0 {
|
||||
segmentInfo.Deltalogs = deltaLogs[segmentInfo.ID]
|
||||
} else {
|
||||
err = binlog.CompressFieldBinlogs(segmentInfo.Deltalogs)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err = binlog.CompressFieldBinlogs(segmentInfo.Deltalogs); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if len(segmentInfo.Statslogs) == 0 {
|
||||
segmentInfo.Statslogs = statsLogs[segmentInfo.ID]
|
||||
} else {
|
||||
err = binlog.CompressFieldBinlogs(segmentInfo.Statslogs)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if err = binlog.CompressFieldBinlogs(segmentInfo.Statslogs); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user