mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-07-19 14:32:41 +00:00
fix(shell): return fs.verify topology errors (#9982)
* fix(shell): return fs.verify topology errors Problem: fs.verify can silently ignore master topology lookup failures before verifying files. Root cause: commandFsVerify.Do returned parseErr after collectVolumeIds failed, but parseErr is nil once path parsing succeeds. Fix: Return the actual collectVolumeIds error so VolumeList and master client failures stop the command. Co-authored-by: Codex <noreply@openai.com> * remove the tests --------- Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -86,7 +86,7 @@ func (c *commandFsVerify) Do(args []string, commandEnv *CommandEnv, writer io.Wr
|
||||
}()
|
||||
|
||||
if err := c.collectVolumeIds(); err != nil {
|
||||
return parseErr
|
||||
return err
|
||||
}
|
||||
|
||||
if *c.concurrency > 0 {
|
||||
|
||||
Reference in New Issue
Block a user