Browse Source

add todo

pull/655/head
Chris Lu 7 years ago
parent
commit
57c5405657
  1. 1
      weed/storage/needle_map_boltdb.go
  2. 1
      weed/storage/needle_map_leveldb.go

1
weed/storage/needle_map_boltdb.go

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

1
weed/storage/needle_map_leveldb.go

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

Loading…
Cancel
Save