From 5b074732f5567a0750784fc89ce46fd44ef52d66 Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Sun, 3 Oct 2021 00:38:13 +0800 Subject: [PATCH] [skip ci] Add comment for addPartitionID (#9101) Signed-off-by: bigsheeper --- internal/querynode/collection.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/querynode/collection.go b/internal/querynode/collection.go index 870a8a38f5..7a0ffe73ed 100644 --- a/internal/querynode/collection.go +++ b/internal/querynode/collection.go @@ -61,6 +61,7 @@ func (c *Collection) Schema() *schemapb.CollectionSchema { return c.schema } +// addPartitionID would add a partition id to partition id list of collection func (c *Collection) addPartitionID(partitionID UniqueID) { c.releaseMu.Lock() defer c.releaseMu.Unlock()