diff options
| author | chrislu <chris.lu@gmail.com> | 2022-06-06 00:39:35 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-06-06 00:39:35 -0700 |
| commit | 4fd5f9659836390b9949838d8ca0e9feec35f66d (patch) | |
| tree | a94ea2e28dade642cd4b919922b1a8b2f23685bc /weed/shell/command_s3_bucket_create.go | |
| parent | cbf46de5f4f788c166028cb223dc4bd70d7eb0f6 (diff) | |
| download | seaweedfs-4fd5f9659836390b9949838d8ca0e9feec35f66d.tar.xz seaweedfs-4fd5f9659836390b9949838d8ca0e9feec35f66d.zip | |
filer: remove replication, collection, disk_type info from entry metadata
these metadata can change and are not used
Diffstat (limited to 'weed/shell/command_s3_bucket_create.go')
| -rw-r--r-- | weed/shell/command_s3_bucket_create.go | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/weed/shell/command_s3_bucket_create.go b/weed/shell/command_s3_bucket_create.go index 35ecae4ee..3476e6926 100644 --- a/weed/shell/command_s3_bucket_create.go +++ b/weed/shell/command_s3_bucket_create.go @@ -34,9 +34,6 @@ func (c *commandS3BucketCreate) Do(args []string, commandEnv *CommandEnv, writer bucketCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError) bucketName := bucketCommand.String("name", "", "bucket name") - replication := bucketCommand.String("replication", "", "replication setting for the bucket, if not set "+ - "it will honor the value defined by the filer if it exists, "+ - "else it will honor the value defined on the master") if err = bucketCommand.Parse(args); err != nil { return nil } @@ -59,11 +56,9 @@ func (c *commandS3BucketCreate) Do(args []string, commandEnv *CommandEnv, writer Name: *bucketName, IsDirectory: true, Attributes: &filer_pb.FuseAttributes{ - Mtime: time.Now().Unix(), - Crtime: time.Now().Unix(), - FileMode: uint32(0777 | os.ModeDir), - Collection: *bucketName, - Replication: *replication, + Mtime: time.Now().Unix(), + Crtime: time.Now().Unix(), + FileMode: uint32(0777 | os.ModeDir), }, } |
