Fix a typo (#10339)

Signed-off-by: yhmo <yihua.mo@zilliz.com>
pull/10356/head
groot 2021-10-21 14:16:37 +08:00 committed by GitHub
parent ed2b8d67c0
commit 0a1529cf7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -336,7 +336,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)
}
@ -355,7 +355,7 @@ func (s *SegmentManager) DropSegment(ctx context.Context, segmentID UniqueID) {
}
segment := s.meta.GetSegment(segmentID)
if segment == nil {
log.Warn("failed to get segment", zap.Int64("id", segmentID))
log.Warn("Failed to get segment", zap.Int64("id", segmentID))
return
}
s.meta.SetAllocations(segmentID, []*Allocation{})