diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-10-25 14:38:48 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-10-25 14:38:48 -0700 |
| commit | 2539ba0b62d3453c8b400130d28d34a67424f436 (patch) | |
| tree | 242ddbf0fe755ceeefed6378bb515ad3a6d2d644 /weed/shell/command_ec_decode.go | |
| parent | 5f2d7c1589d9f05e31166b4d0edfe7f9fb96d140 (diff) | |
| download | seaweedfs-2539ba0b62d3453c8b400130d28d34a67424f436.tar.xz seaweedfs-2539ba0b62d3453c8b400130d28d34a67424f436.zip | |
fix compilation
Diffstat (limited to 'weed/shell/command_ec_decode.go')
| -rw-r--r-- | weed/shell/command_ec_decode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_ec_decode.go b/weed/shell/command_ec_decode.go index 33ec520e5..83b122bcc 100644 --- a/weed/shell/command_ec_decode.go +++ b/weed/shell/command_ec_decode.go @@ -41,7 +41,7 @@ func (c *commandEcDecode) Do(args []string, commandEnv *CommandEnv, writer io.Wr encodeCommand := flag.NewFlagSet(c.Name(), flag.ContinueOnError) volumeId := encodeCommand.Int("volumeId", 0, "the volume id") collection := encodeCommand.String("collection", "", "the collection name") - applyChanges := fixCommand.Bool("force", false, "force the encoding even if the cluster has less than recommended 4 nodes") + applyChanges := encodeCommand.Bool("force", false, "force the encoding even if the cluster has less than recommended 4 nodes") if err = encodeCommand.Parse(args); err != nil { return nil } @@ -58,7 +58,7 @@ func (c *commandEcDecode) Do(args []string, commandEnv *CommandEnv, writer io.Wr return err } - if !applyChanges { + if !*applyChanges { var nodeCount int eachDataNode(topologyInfo, func(dc string, rack RackId, dn *master_pb.DataNodeInfo) { nodeCount++ |
