mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-18 01:37:10 +01:00
Contrib/volume scrub local (#8226)
This commit is contained in:
1 parent
3306abae10
commit
9d751a7b61
5 files changed
+28
-7
No files matched your search
@@ -49,7 +49,7 @@ func (c *commandEcVolumeScrub) Do(args []string, commandEnv *CommandEnv, writer
|
||||
nodesStr := volScrubCommand.String("node", "", "comma-separated list of volume server <host>:<port> (optional)")
|
||||
volumeIDsStr := volScrubCommand.String("volumeId", "", "comma-separated EC volume IDs to process (optional)")
|
||||
// TODO: switch default mode to LOCAL, once implemented.
|
||||
mode := volScrubCommand.String("mode", "INDEX", "scrubbing mode (INDEX/FULL)")
|
||||
mode := volScrubCommand.String("mode", "index", "scrubbing mode (index/local/full)")
|
||||
// TODO: add per-node parallelization
|
||||
|
||||
if err = volScrubCommand.Parse(args); err != nil {
|
||||
@@ -92,6 +92,8 @@ func (c *commandEcVolumeScrub) Do(args []string, commandEnv *CommandEnv, writer
|
||||
switch strings.ToUpper(*mode) {
|
||||
case "INDEX":
|
||||
c.mode = volume_server_pb.VolumeScrubMode_INDEX
|
||||
case "LOCAL":
|
||||
c.mode = volume_server_pb.VolumeScrubMode_LOCAL
|
||||
case "FULL":
|
||||
c.mode = volume_server_pb.VolumeScrubMode_FULL
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user