From 05034aade5da8525b6067dece4a738cc664dabc4 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 6 Sep 2020 12:44:02 -0700 Subject: [PATCH] printout over replicated locations --- weed/shell/command_volume_fix_replication.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go index e17f35c67..59f4bff10 100644 --- a/weed/shell/command_volume_fix_replication.go +++ b/weed/shell/command_volume_fix_replication.go @@ -85,6 +85,8 @@ func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv, replicaPlacement, _ := super_block.NewReplicaPlacementFromByte(byte(volumeInfo.ReplicaPlacement)) if replicaPlacement.GetCopyCount() > len(locations) { underReplicatedVolumeLocations[vid] = locations + } else if replicaPlacement.GetCopyCount() < len(locations) { + fmt.Fprintf(writer, "volume %d replication %s, but over repliacated:%+v\n", volumeInfo.Id, replicaPlacement, locations) } }