Browse Source

chore: hot fix panic fs.verify (#5696)

pull/5701/head
Konstantin Lebedev 7 months ago
committed by GitHub
parent
commit
34165013c8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      weed/shell/command_fs_verify.go

3
weed/shell/command_fs_verify.go

@ -163,9 +163,10 @@ func (c *commandFsVerify) verifyProcessMetadata(path string, wg *sync.WaitGroup)
Directory: message.NewParentPath, Directory: message.NewParentPath,
Name: message.NewEntry.Name, Name: message.NewEntry.Name,
}) })
if errReq != nil {
if strings.HasSuffix(errReq.Error(), "no entry is found in filer store") { if strings.HasSuffix(errReq.Error(), "no entry is found in filer store") {
return nil return nil
} else if errReq != nil { }
return errReq return errReq
} }
if entryResp.Entry.Attributes.Mtime == message.NewEntry.Attributes.Mtime && if entryResp.Entry.Attributes.Mtime == message.NewEntry.Attributes.Mtime &&

|||||||
100:0
Loading…
Cancel
Save