[skip ci]Fix error log output format in segment_manager.go (#12856)

Signed-off-by: JackLCL <chenglong.li@zilliz.com>
pull/12877/head
JackLCL 2021-12-07 14:36:27 +08:00 committed by GitHub
parent 290b51dc5d
commit f90410fe8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ func (s *SegmentManager) openNewSegment(ctx context.Context, collectionID Unique
func (s *SegmentManager) estimateMaxNumOfRows(collectionID UniqueID) (int, error) {
collMeta := s.meta.GetCollection(collectionID)
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)
}