diff options
| author | chrislu <chris.lu@gmail.com> | 2024-09-29 10:51:17 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-09-29 10:51:17 -0700 |
| commit | 6564ceda915a67d5b2ded9b18a9e5be2abe3a4aa (patch) | |
| tree | babe0fe15cabf6fe7c4c7662ce1770d0f14b2539 /weed/shell/command_volume_check_disk.go | |
| parent | ec30a504bae6cad75f859964e14c60d39cc43709 (diff) | |
| download | seaweedfs-6564ceda915a67d5b2ded9b18a9e5be2abe3a4aa.tar.xz seaweedfs-6564ceda915a67d5b2ded9b18a9e5be2abe3a4aa.zip | |
skip resource heavy commands from running on master nodes
Diffstat (limited to 'weed/shell/command_volume_check_disk.go')
| -rw-r--r-- | weed/shell/command_volume_check_disk.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_volume_check_disk.go b/weed/shell/command_volume_check_disk.go index f1f3a0728..f72dff243 100644 --- a/weed/shell/command_volume_check_disk.go +++ b/weed/shell/command_volume_check_disk.go @@ -48,8 +48,8 @@ func (c *commandVolumeCheckDisk) Help() string { ` } -func (c *commandVolumeCheckDisk) HasTag(CommandTag) bool { - return false +func (c *commandVolumeCheckDisk) HasTag(tag CommandTag) bool { + return tag == ResourceHeavy } func (c *commandVolumeCheckDisk) getVolumeStatusFileCount(vid uint32, dn *master_pb.DataNodeInfo) (totalFileCount, deletedFileCount uint64) { |
