Browse Source

chore(fs.configure 可以指定修改 collection):

Signed-off-by: changlin.shi <changlin.shi@ly.com>
pull/5936/head
changlin.shi 2 years ago
parent
commit
d0bfc260e7
  1. 10
      weed/shell/command_fs_configure.go

10
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 != "" {

Loading…
Cancel
Save