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
Revert "adjust the needle mapper"
Chris Lu6db1c8bafb40
diff --git a/weed/storage/needle_map_boltdb.go b/weed/storage/needle_map_boltdb.goindex 4492aaeffe..cbcc786af1 100644--- a/weed/storage/needle_map_boltdb.go+++ b/weed/storage/needle_map_boltdb.go@@ -32,7 +32,7 @@ func NewBoltDbNeedleMap(dbFileName string, indexFile *os.File) (m *BoltDbNeedleMreturn}glog.V(1).Infof("Loading %s...", indexFile.Name())- nm, indexLoadError := NewBoltDbNeedleMap(dbFileName, indexFile)+ nm, indexLoadError := LoadBtreeNeedleMap(indexFile)if indexLoadError != nil {return nil, indexLoadError}diff --git a/weed/storage/needle_map_leveldb.go b/weed/storage/needle_map_leveldb.goindex b0a4735b5a..78dffaf7d3 100644--- a/weed/storage/needle_map_leveldb.go+++ b/weed/storage/needle_map_leveldb.go@@ -30,7 +30,7 @@ func NewLevelDbNeedleMap(dbFileName string, indexFile *os.File) (m *LevelDbNeedlreturn}glog.V(1).Infof("Loading %s...", indexFile.Name())- nm, indexLoadError := NewLevelDbNeedleMap(dbFileName, indexFile)+ nm, indexLoadError := LoadBtreeNeedleMap(indexFile)if indexLoadError != nil {return nil, indexLoadError}