align memory to avoid nil with atomic operations
This commit is contained in:
@@ -14,9 +14,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type LevelDbNeedleMap struct {
|
type LevelDbNeedleMap struct {
|
||||||
|
baseNeedleMapper
|
||||||
dbFileName string
|
dbFileName string
|
||||||
db *leveldb.DB
|
db *leveldb.DB
|
||||||
baseNeedleMapper
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewLevelDbNeedleMap(dbFileName string, indexFile *os.File, opts *opt.Options) (m *LevelDbNeedleMap, err error) {
|
func NewLevelDbNeedleMap(dbFileName string, indexFile *os.File, opts *opt.Options) (m *LevelDbNeedleMap, err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user