Browse Source

align memory to avoid nil with atomic operations

pull/991/head
Chris Lu 6 years ago
parent
commit
46a675ecc2
  1. 2
      weed/storage/needle_map_leveldb.go

2
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) {

Loading…
Cancel
Save