From 653ba91cc76b29d0ea78981b630afb8a4e2458f9 Mon Sep 17 00:00:00 2001 From: godchen Date: Tue, 12 Oct 2021 19:23:39 +0800 Subject: [PATCH] [skip ci ]Add join id path comment (#9718) Signed-off-by: godchen --- internal/datanode/allocator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/datanode/allocator.go b/internal/datanode/allocator.go index 66a1bcabfe..7c3850b4e0 100644 --- a/internal/datanode/allocator.go +++ b/internal/datanode/allocator.go @@ -79,6 +79,7 @@ func (alloc *allocator) genKey(isalloc bool, ids ...UniqueID) (string, error) { return JoinIDPath(ids...), nil } +// JoinIDPath joins ids to path format. func JoinIDPath(ids ...UniqueID) string { idStr := make([]string, len(ids)) for _, id := range ids {