From 53ed53453fd69bd6b1bb05f3c873b46a6f8616fb Mon Sep 17 00:00:00 2001 From: root Date: Wed, 28 Aug 2024 13:03:51 +0200 Subject: [PATCH] add warning on utils --- pkg/storage/fs/cephfs/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/storage/fs/cephfs/utils.go b/pkg/storage/fs/cephfs/utils.go index e49f066b42..fa868ec895 100644 --- a/pkg/storage/fs/cephfs/utils.go +++ b/pkg/storage/fs/cephfs/utils.go @@ -107,6 +107,7 @@ func pathGenerator(path string, reverse bool, str chan string) { func walkPath(path string, f func(string) error, reverse bool) (err error) { paths := make(chan string) + // TODO(labkode): carefully review this, a race could happen if pathGenerator gorouting is slow go pathGenerator(path, reverse, paths) for path := range paths { if path == "" {