aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_fix_replication.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-08 15:12:39 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-08 15:12:39 -0700
commit26c222f59684d438b13042398f69952b006dafe9 (patch)
treee00909467203fc2ed23a90c8f1903508fc9025df /weed/shell/command_volume_fix_replication.go
parentde730b079da4d9e046c4816a4f74a19c4ddf6712 (diff)
downloadseaweedfs-26c222f59684d438b13042398f69952b006dafe9.tar.xz
seaweedfs-26c222f59684d438b13042398f69952b006dafe9.zip
shell: volume.tier.move avoid moving all volumes to one destination
Diffstat (limited to 'weed/shell/command_volume_fix_replication.go')
-rw-r--r--weed/shell/command_volume_fix_replication.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go
index 7e7c0a93d..326cb2a40 100644
--- a/weed/shell/command_volume_fix_replication.go
+++ b/weed/shell/command_volume_fix_replication.go
@@ -195,6 +195,8 @@ func (c *commandVolumeFixReplication) fixOneUnderReplicatedVolume(commandEnv *Co
fmt.Fprintf(writer, "replicating volume %d %s from %s to dataNode %s ...\n", replica.info.Id, replicaPlacement, replica.location.dataNode.Id, dst.dataNode.Id)
if !takeAction {
+ // adjust free volume count
+ dst.dataNode.DiskInfos[replica.info.DiskType].FreeVolumeCount--
break
}