This commit is contained in:
Chris Lu 2018-05-09 04:18:31 -07:00
parent 6db1c8bafb
commit 57c5405657
2 changed files with 2 additions and 0 deletions

View file

@ -19,6 +19,7 @@ type BoltDbNeedleMap struct {
var boltdbBucket = []byte("weed")
// TODO avoid using btree to count deletions.
func NewBoltDbNeedleMap(dbFileName string, indexFile *os.File) (m *BoltDbNeedleMap, err error) {
m = &BoltDbNeedleMap{dbFileName: dbFileName}
m.indexFile = indexFile

View file

@ -17,6 +17,7 @@ type LevelDbNeedleMap struct {
baseNeedleMapper
}
// TODO avoid using btree to count deletions.
func NewLevelDbNeedleMap(dbFileName string, indexFile *os.File) (m *LevelDbNeedleMap, err error) {
m = &LevelDbNeedleMap{dbFileName: dbFileName}
m.indexFile = indexFile