aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_check_disk.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@uber.com>2021-04-14 12:40:13 -0700
committerChris Lu <chris.lu@uber.com>2021-04-14 12:40:13 -0700
commite75633c64fd4b93339787933dbbf4d8fb93ccff1 (patch)
tree0f76136c1b2b546f9a62cb80188892e466a56ff4 /weed/shell/command_volume_check_disk.go
parent9d50867d08557acf389878c6f42bd22d0c2cc709 (diff)
downloadseaweedfs-e75633c64fd4b93339787933dbbf4d8fb93ccff1.tar.xz
seaweedfs-e75633c64fd4b93339787933dbbf4d8fb93ccff1.zip
volume.check.disk: break loop for read only volumes
fix https://github.com/chrislusf/seaweedfs/issues/2002
Diffstat (limited to 'weed/shell/command_volume_check_disk.go')
-rw-r--r--weed/shell/command_volume_check_disk.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/shell/command_volume_check_disk.go b/weed/shell/command_volume_check_disk.go
index 5a0d46869..0f156ac2f 100644
--- a/weed/shell/command_volume_check_disk.go
+++ b/weed/shell/command_volume_check_disk.go
@@ -85,6 +85,7 @@ func (c *commandVolumeCheckDisk) Do(args []string, commandEnv *CommandEnv, write
}
if a.info.ReadOnly || b.info.ReadOnly {
fmt.Fprintf(writer, "skipping readonly volume %d on %s and %s\n", a.info.Id, a.location.dataNode.Id, b.location.dataNode.Id)
+ replicas = replicas[1:]
continue
}