aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/commands.go')
-rw-r--r--weed/shell/commands.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index e67394e42..b1722edfb 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -184,3 +184,10 @@ func readNeedleStatus(grpcDialOption grpc.DialOption, sourceVolumeServer pb.Serv
)
return
}
+
+func getCollectionName(commandEnv *CommandEnv, bucket string) string {
+ if *commandEnv.option.FilerGroup != "" {
+ return fmt.Sprintf("%s_%s", *commandEnv.option.FilerGroup, bucket)
+ }
+ return bucket
+}