mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 10:28:41 +08:00
fix:wrong warning log when idf oracle find L0 segment lacks (#37873)
relate: https://github.com/milvus-io/milvus/issues/35853 Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
c5327ff150
commit
db3c002788
@ -24,6 +24,7 @@ import (
|
||||
|
||||
"github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
|
||||
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
|
||||
"github.com/milvus-io/milvus/internal/proto/datapb"
|
||||
"github.com/milvus-io/milvus/internal/querynodev2/segments"
|
||||
"github.com/milvus-io/milvus/internal/storage"
|
||||
"github.com/milvus-io/milvus/pkg/log"
|
||||
@ -200,6 +201,10 @@ func (o *idfOracle) SyncDistribution(snapshot *snapshot) {
|
||||
|
||||
for _, item := range sealed {
|
||||
for _, segment := range item.Segments {
|
||||
if segment.Level == datapb.SegmentLevel_L0 {
|
||||
continue
|
||||
}
|
||||
|
||||
if stats, ok := o.sealed[segment.SegmentID]; ok {
|
||||
stats.targetVersion = segment.TargetVersion
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user