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

This commit is contained in:
Konstantin Lebedev
2024-06-21 03:24:31 +05:00
committed by GitHub
parent 610d397f76
commit 34165013c8

View File

@@ -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 strings.HasSuffix(errReq.Error(), "no entry is found in filer store") { if errReq != nil {
return nil if strings.HasSuffix(errReq.Error(), "no entry is found in filer store") {
} else if errReq != nil { return nil
}
return errReq return errReq
} }
if entryResp.Entry.Attributes.Mtime == message.NewEntry.Attributes.Mtime && if entryResp.Entry.Attributes.Mtime == message.NewEntry.Attributes.Mtime &&