From d0bfc260e79c110ba1c37e2ec3e21856d877846e Mon Sep 17 00:00:00 2001 From: "changlin.shi" Date: Tue, 28 Feb 2023 16:47:03 +0800 Subject: [PATCH] =?UTF-8?q?chore(fs.configure=20=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E4=BF=AE=E6=94=B9=20collection):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: changlin.shi --- weed/shell/command_fs_configure.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go index 60edb79c2..29e12ee44 100644 --- a/weed/shell/command_fs_configure.go +++ b/weed/shell/command_fs_configure.go @@ -4,12 +4,10 @@ import ( "bytes" "flag" "fmt" - "io" - "strings" - "github.com/seaweedfs/seaweedfs/weed/filer" "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" "github.com/seaweedfs/seaweedfs/weed/storage/super_block" + "io" ) func init() { @@ -87,9 +85,9 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io } // check collection - if *collection != "" && strings.HasPrefix(*locationPrefix, "/buckets/") { - return fmt.Errorf("one s3 bucket goes to one collection and not customizable") - } + //if *collection != "" && strings.HasPrefix(*locationPrefix, "/buckets/") { + // return fmt.Errorf("one s3 bucket goes to one collection and not customizable") + //} // check replication if *replication != "" {