adjust the needle mapper

as discussed on
https://github.com/chrislusf/seaweedfs/pull/642#issuecomment-387606960
This commit is contained in:
Chris Lu 2018-05-09 03:50:14 -07:00
parent 43a69d20bf
commit e2c7be3a2e
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ func NewBoltDbNeedleMap(dbFileName string, indexFile *os.File) (m *BoltDbNeedleM
return
}
glog.V(1).Infof("Loading %s...", indexFile.Name())
nm, indexLoadError := LoadBtreeNeedleMap(indexFile)
nm, indexLoadError := NewBoltDbNeedleMap(dbFileName, indexFile)
if indexLoadError != nil {
return nil, indexLoadError
}

View file

@ -30,7 +30,7 @@ func NewLevelDbNeedleMap(dbFileName string, indexFile *os.File) (m *LevelDbNeedl
return
}
glog.V(1).Infof("Loading %s...", indexFile.Name())
nm, indexLoadError := LoadBtreeNeedleMap(indexFile)
nm, indexLoadError := NewLevelDbNeedleMap(dbFileName, indexFile)
if indexLoadError != nil {
return nil, indexLoadError
}