aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
authorSmsS4 <36403983+SmsS4@users.noreply.github.com>2023-05-16 20:09:43 +0330
committerGitHub <noreply@github.com>2023-05-16 09:39:43 -0700
commit17e91d29179a41131e2a707ac2c5e63be4a21530 (patch)
treece0aa8417e2c4d983b7f085b8f1498dc3bd4f9d4 /weed/shell/commands.go
parentb7f011f777bd9fa396a607e6228f43e3be5f5437 (diff)
downloadseaweedfs-17e91d29179a41131e2a707ac2c5e63be4a21530.tar.xz
seaweedfs-17e91d29179a41131e2a707ac2c5e63be4a21530.zip
Use filerGroup for s3 buckets collection prefix (#4465)
* Use filerGroup for s3 buckets collection prefix * Fix templates * Remove flags * Remove s3CollectionPrefix
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
+}