From d774fa6c9a9d4685f8f4e0081f7385537f98ea84 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 25 Oct 2021 14:39:20 -0700 Subject: [PATCH] rename variable --- weed/shell/command_ec_decode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/shell/command_ec_decode.go b/weed/shell/command_ec_decode.go index 83b122bcc..c9f49745b 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 := encodeCommand.Bool("force", false, "force the encoding even if the cluster has less than recommended 4 nodes") + forceChanges := 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 !*forceChanges { var nodeCount int eachDataNode(topologyInfo, func(dc string, rack RackId, dn *master_pb.DataNodeInfo) { nodeCount++