diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-05-04 21:33:05 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-05-04 21:33:05 -0700 |
| commit | 46a675ecc2558635cf9f8eae90b3d974636ddff0 (patch) | |
| tree | b1b03c180dacec22cd7537ed552479bedf35f3f3 | |
| parent | 177f3add8166d53dd9f6fce7549e9f3afb828216 (diff) | |
| download | seaweedfs-46a675ecc2558635cf9f8eae90b3d974636ddff0.tar.xz seaweedfs-46a675ecc2558635cf9f8eae90b3d974636ddff0.zip | |
align memory to avoid nil with atomic operations
| -rw-r--r-- | weed/storage/needle_map_leveldb.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/needle_map_leveldb.go b/weed/storage/needle_map_leveldb.go index 01807595b..602c90ddf 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) { |
