aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_verify.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-06-21 03:24:31 +0500
committerGitHub <noreply@github.com>2024-06-20 15:24:31 -0700
commit34165013c85cb39385e422710f12eb1bde40109a (patch)
tree83acc45f3787f93031c4c0f205d34b05df8f941b /weed/shell/command_fs_verify.go
parent610d397f76a372a1c5faa5fadfbf9eb8ff2dad1f (diff)
downloadseaweedfs-34165013c85cb39385e422710f12eb1bde40109a.tar.xz
seaweedfs-34165013c85cb39385e422710f12eb1bde40109a.zip
chore: hot fix panic fs.verify (#5696)
Diffstat (limited to 'weed/shell/command_fs_verify.go')
-rw-r--r--weed/shell/command_fs_verify.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/weed/shell/command_fs_verify.go b/weed/shell/command_fs_verify.go
index b30020c40..47052cca0 100644
--- a/weed/shell/command_fs_verify.go
+++ b/weed/shell/command_fs_verify.go
@@ -163,9 +163,10 @@ func (c *commandFsVerify) verifyProcessMetadata(path string, wg *sync.WaitGroup)
Directory: message.NewParentPath,
Name: message.NewEntry.Name,
})
- if strings.HasSuffix(errReq.Error(), "no entry is found in filer store") {
- return nil
- } else if errReq != nil {
+ if errReq != nil {
+ if strings.HasSuffix(errReq.Error(), "no entry is found in filer store") {
+ return nil
+ }
return errReq
}
if entryResp.Entry.Attributes.Mtime == message.NewEntry.Attributes.Mtime &&