From e75633c64fd4b93339787933dbbf4d8fb93ccff1 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 14 Apr 2021 12:40:13 -0700 Subject: [PATCH] volume.check.disk: break loop for read only volumes fix https://github.com/chrislusf/seaweedfs/issues/2002 --- weed/shell/command_volume_check_disk.go | 1 + 1 file changed, 1 insertion(+) 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 }