From 20929f2a5753a04385be2378e698c8df762b3256 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 29 Sep 2024 11:32:18 -0700 Subject: [PATCH] adjust resource heavy for volume.fix.replication --- weed/shell/command_volume_fix_replication.go | 2 +- weed/shell/command_volume_fsck.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go index 55c801284..2c35b3bcd 100644 --- a/weed/shell/command_volume_fix_replication.go +++ b/weed/shell/command_volume_fix_replication.go @@ -56,7 +56,7 @@ func (c *commandVolumeFixReplication) Help() string { } func (c *commandVolumeFixReplication) HasTag(tag CommandTag) bool { - return tag == ResourceHeavy + return false && tag == ResourceHeavy // resource intensive only when deleting and checking with replicas. } func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) { diff --git a/weed/shell/command_volume_fsck.go b/weed/shell/command_volume_fsck.go index d68ec8de5..30d3ecd11 100644 --- a/weed/shell/command_volume_fsck.go +++ b/weed/shell/command_volume_fsck.go @@ -60,7 +60,7 @@ func (c *commandVolumeFsck) Name() string { } func (c *commandVolumeFsck) Help() string { - return `check all volumes to find entries not used by the filer + return `check all volumes to find entries not used by the filer. It is optional and resource intensive. Important assumption!!! the system is all used by one filer.