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.

align memory to avoid nil with atomic operations

Chris Lu46a675ecc255
diff --git a/weed/storage/needle_map_leveldb.go b/weed/storage/needle_map_leveldb.go
index 01807595b9..602c90ddf0 100644
--- a/weed/storage/needle_map_leveldb.go
+++ b/weed/storage/needle_map_leveldb.go
@@ -14,9 +14,9 @@ import (
)
type LevelDbNeedleMap struct {
+ baseNeedleMapper
dbFileName string
db *leveldb.DB
- baseNeedleMapper
}
func NewLevelDbNeedleMap(dbFileName string, indexFile *os.File, opts *opt.Options) (m *LevelDbNeedleMap, err error) {