diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-05-09 03:57:07 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-05-09 03:57:07 -0700 |
| commit | 6db1c8bafb4026ea60b921d38fb14cb5961c6e01 (patch) | |
| tree | e0229e8ac9f35cbda0de5f5043d512522b2d23c9 | |
| parent | e2c7be3a2e91056a6402fc70a979aa273c15fcd2 (diff) | |
| download | seaweedfs-6db1c8bafb4026ea60b921d38fb14cb5961c6e01.tar.xz seaweedfs-6db1c8bafb4026ea60b921d38fb14cb5961c6e01.zip | |
Revert "adjust the needle mapper"
This reverts commit e2c7be3a2e91056a6402fc70a979aa273c15fcd2.
| -rw-r--r-- | weed/storage/needle_map_boltdb.go | 2 | ||||
| -rw-r--r-- | weed/storage/needle_map_leveldb.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/needle_map_boltdb.go b/weed/storage/needle_map_boltdb.go index 4492aaeff..cbcc786af 100644 --- a/weed/storage/needle_map_boltdb.go +++ b/weed/storage/needle_map_boltdb.go @@ -32,7 +32,7 @@ func NewBoltDbNeedleMap(dbFileName string, indexFile *os.File) (m *BoltDbNeedleM return } glog.V(1).Infof("Loading %s...", indexFile.Name()) - nm, indexLoadError := NewBoltDbNeedleMap(dbFileName, indexFile) + nm, indexLoadError := LoadBtreeNeedleMap(indexFile) if indexLoadError != nil { return nil, indexLoadError } diff --git a/weed/storage/needle_map_leveldb.go b/weed/storage/needle_map_leveldb.go index b0a4735b5..78dffaf7d 100644 --- a/weed/storage/needle_map_leveldb.go +++ b/weed/storage/needle_map_leveldb.go @@ -30,7 +30,7 @@ func NewLevelDbNeedleMap(dbFileName string, indexFile *os.File) (m *LevelDbNeedl return } glog.V(1).Infof("Loading %s...", indexFile.Name()) - nm, indexLoadError := NewLevelDbNeedleMap(dbFileName, indexFile) + nm, indexLoadError := LoadBtreeNeedleMap(indexFile) if indexLoadError != nil { return nil, indexLoadError } |
