mirror of https://github.com/milvus-io/milvus.git
[skip ci]Fix error log output format in segment_manager.go (#12856)
Signed-off-by: JackLCL <chenglong.li@zilliz.com>pull/12877/head
parent
290b51dc5d
commit
f90410fe8e
|
@ -335,7 +335,7 @@ func (s *SegmentManager) openNewSegment(ctx context.Context, collectionID Unique
|
||||||
func (s *SegmentManager) estimateMaxNumOfRows(collectionID UniqueID) (int, error) {
|
func (s *SegmentManager) estimateMaxNumOfRows(collectionID UniqueID) (int, error) {
|
||||||
collMeta := s.meta.GetCollection(collectionID)
|
collMeta := s.meta.GetCollection(collectionID)
|
||||||
if collMeta == nil {
|
if collMeta == nil {
|
||||||
return -1, fmt.Errorf("Failed to get collection %d", collectionID)
|
return -1, fmt.Errorf("failed to get collection %d", collectionID)
|
||||||
}
|
}
|
||||||
return s.estimatePolicy(collMeta.Schema)
|
return s.estimatePolicy(collMeta.Schema)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue