Chris Lu 7 years ago
parent
commit
e2c7be3a2e
  1. 2
      weed/storage/needle_map_boltdb.go
  2. 2
      weed/storage/needle_map_leveldb.go

2
weed/storage/needle_map_boltdb.go

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

2
weed/storage/needle_map_leveldb.go

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

Loading…
Cancel
Save