Skip to content

Commit

Permalink
add warning on utils
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 28, 2024
1 parent b146b3b commit 53ed534
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/fs/cephfs/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down

0 comments on commit 53ed534

Please sign in to comment.