From d1b816212f2fd535c22ecdc0e84a38b31a3472a3 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 7 Sep 2020 16:03:05 -0700 Subject: [PATCH] return nil if no need to do anything --- weed/shell/command_volume_fix_replication.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go index d94e7ded8..735d07800 100644 --- a/weed/shell/command_volume_fix_replication.go +++ b/weed/shell/command_volume_fix_replication.go @@ -97,7 +97,7 @@ func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv, } if len(underReplicatedVolumeIds) == 0 { - return fmt.Errorf("no under replicated volumes") + return nil } if len(allLocations) == 0 {