From 0a1529cf7ebb77af7c85337eae481860089d9bef Mon Sep 17 00:00:00 2001 From: groot Date: Thu, 21 Oct 2021 14:16:37 +0800 Subject: [PATCH] Fix a typo (#10339) Signed-off-by: yhmo --- internal/datacoord/segment_manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/datacoord/segment_manager.go b/internal/datacoord/segment_manager.go index 0692dfdad7..d8a4f5db67 100644 --- a/internal/datacoord/segment_manager.go +++ b/internal/datacoord/segment_manager.go @@ -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{})