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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
prevent nil
Chris Lu4ccfdaeb4dd7
diff --git a/weed/filesys/meta_cache/meta_cache.go b/weed/filesys/meta_cache/meta_cache.goindex 69a016c23f..15ec0903d7 100644--- a/weed/filesys/meta_cache/meta_cache.go+++ b/weed/filesys/meta_cache/meta_cache.go@@ -61,7 +61,7 @@ func (mc *MetaCache) AtomicUpdateEntry(ctx context.Context, oldPath util.FullPatoldDir, _ := oldPath.DirAndName()if mc.visitedBoundary.HasVisited(util.FullPath(oldDir)) {if oldPath != "" {- if oldPath == newEntry.FullPath {+ if newEntry != nil && oldPath == newEntry.FullPath {// skip the unnecessary deletion// leave the update to the following InsertEntry operation} else {