aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-09-29 11:32:18 -0700
committerchrislu <chris.lu@gmail.com>2024-09-29 11:32:18 -0700
commit20929f2a5753a04385be2378e698c8df762b3256 (patch)
tree6fe97f798c82ef43605a12a12846a0c51a8a336f
parent6564ceda915a67d5b2ded9b18a9e5be2abe3a4aa (diff)
downloadseaweedfs-20929f2a5753a04385be2378e698c8df762b3256.tar.xz
seaweedfs-20929f2a5753a04385be2378e698c8df762b3256.zip
adjust resource heavy for volume.fix.replication
-rw-r--r--weed/shell/command_volume_fix_replication.go2
-rw-r--r--weed/shell/command_volume_fsck.go2
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.