aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_fsck.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-09-29 10:51:17 -0700
committerchrislu <chris.lu@gmail.com>2024-09-29 10:51:17 -0700
commit6564ceda915a67d5b2ded9b18a9e5be2abe3a4aa (patch)
treebabe0fe15cabf6fe7c4c7662ce1770d0f14b2539 /weed/shell/command_volume_fsck.go
parentec30a504bae6cad75f859964e14c60d39cc43709 (diff)
downloadseaweedfs-6564ceda915a67d5b2ded9b18a9e5be2abe3a4aa.tar.xz
seaweedfs-6564ceda915a67d5b2ded9b18a9e5be2abe3a4aa.zip
skip resource heavy commands from running on master nodes
Diffstat (limited to 'weed/shell/command_volume_fsck.go')
-rw-r--r--weed/shell/command_volume_fsck.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_volume_fsck.go b/weed/shell/command_volume_fsck.go
index 89c15a8af..d68ec8de5 100644
--- a/weed/shell/command_volume_fsck.go
+++ b/weed/shell/command_volume_fsck.go
@@ -79,8 +79,8 @@ func (c *commandVolumeFsck) Help() string {
`
}
-func (c *commandVolumeFsck) HasTag(CommandTag) bool {
- return false
+func (c *commandVolumeFsck) HasTag(tag CommandTag) bool {
+ return tag == ResourceHeavy
}
func (c *commandVolumeFsck) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {