Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

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

Konstantin Lebedev34165013c85c
diff --git a/weed/shell/command_fs_verify.go b/weed/shell/command_fs_verify.go
index b30020c409..47052cca08 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 &&