diff options
| author | Chris Lu <chris.lu@uber.com> | 2021-04-14 12:40:13 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@uber.com> | 2021-04-14 12:40:13 -0700 |
| commit | e75633c64fd4b93339787933dbbf4d8fb93ccff1 (patch) | |
| tree | 0f76136c1b2b546f9a62cb80188892e466a56ff4 | |
| parent | 9d50867d08557acf389878c6f42bd22d0c2cc709 (diff) | |
| download | seaweedfs-e75633c64fd4b93339787933dbbf4d8fb93ccff1.tar.xz seaweedfs-e75633c64fd4b93339787933dbbf4d8fb93ccff1.zip | |
volume.check.disk: break loop for read only volumes
fix https://github.com/chrislusf/seaweedfs/issues/2002
| -rw-r--r-- | weed/shell/command_volume_check_disk.go | 1 |
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 } |
