From d5791289fcdde1cd5f2211047f590db4ab602d4e Mon Sep 17 00:00:00 2001 From: "edward.zeng" Date: Fri, 17 Dec 2021 18:49:09 +0800 Subject: [PATCH] [skip e2e] Refine datacoord segment manager comment (#13605) Signed-off-by: Edward Zeng --- internal/datacoord/segment_manager.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/datacoord/segment_manager.go b/internal/datacoord/segment_manager.go index e4d15257ff..9f2ef2a60a 100644 --- a/internal/datacoord/segment_manager.go +++ b/internal/datacoord/segment_manager.go @@ -42,7 +42,7 @@ var ( } ) -// getAllocation unified way to retrieve allocation struct +// getAllocation unifies way to retrieve allocation struct func getAllocation(numOfRows int64) *Allocation { v := allocPool.Get() a, ok := v.(*Allocation) @@ -60,7 +60,7 @@ func getAllocation(numOfRows int64) *Allocation { return a } -// putAllocation put allocation for recycling +// putAllocation puts an allocation for recycling func putAllocation(a *Allocation) { allocPool.Put(a) } @@ -69,7 +69,7 @@ func putAllocation(a *Allocation) { // TODO needs to be configurable const segmentMaxLifetime = 24 * time.Hour -// Manager manage segment related operations. +// Manager manages segment related operations. type Manager interface { // AllocSegment allocates rows and record the allocation. AllocSegment(ctx context.Context, collectionID, partitionID UniqueID, channelName string, requestRows int64) ([]*Allocation, error)