aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_fix_replication.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-07-21 14:38:12 -0700
committerChris Lu <chris.lu@gmail.com>2021-07-21 14:38:12 -0700
commit7359193e974e8ee30d2b2625ae30008ad940d1a6 (patch)
tree4ff6c24a6b7cf3ba797eb0c9a014dc8ab9468bad /weed/shell/command_volume_fix_replication.go
parentcc32436d63a433b436ab74c99fe7246242a83716 (diff)
downloadseaweedfs-7359193e974e8ee30d2b2625ae30008ad940d1a6.tar.xz
seaweedfs-7359193e974e8ee30d2b2625ae30008ad940d1a6.zip
go fmt
Diffstat (limited to 'weed/shell/command_volume_fix_replication.go')
-rw-r--r--weed/shell/command_volume_fix_replication.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go
index d1f830efb..9e6280788 100644
--- a/weed/shell/command_volume_fix_replication.go
+++ b/weed/shell/command_volume_fix_replication.go
@@ -158,7 +158,7 @@ func (c *commandVolumeFixReplication) fixOverReplicatedVolumes(commandEnv *Comma
func (c *commandVolumeFixReplication) fixUnderReplicatedVolumes(commandEnv *CommandEnv, writer io.Writer, takeAction bool, underReplicatedVolumeIds []uint32, volumeReplicas map[uint32][]*VolumeReplica, allLocations []location, retryCount int) (err error) {
for _, vid := range underReplicatedVolumeIds {
- for i:=0;i<retryCount+1;i++{
+ for i := 0; i < retryCount+1; i++ {
if err = c.fixOneUnderReplicatedVolume(commandEnv, writer, takeAction, volumeReplicas, vid, allLocations); err == nil {
continue
}