weed volume: fix bug, remove boltdb, btree

This commit is contained in:
Chris Lu 2019-04-09 10:08:59 -07:00
parent 8a5ce16e96
commit 3555628ad5
2 changed files with 2 additions and 4 deletions

View file

@ -143,9 +143,9 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
case "leveldb": case "leveldb":
volumeNeedleMapKind = storage.NeedleMapLevelDb volumeNeedleMapKind = storage.NeedleMapLevelDb
case "leveldbMedium": case "leveldbMedium":
volumeNeedleMapKind = storage.NeedleMapBoltDb volumeNeedleMapKind = storage.NeedleMapLevelDbMedium
case "leveldbLarge": case "leveldbLarge":
volumeNeedleMapKind = storage.NeedleMapBoltDb volumeNeedleMapKind = storage.NeedleMapLevelDbLarge
} }
masters := *v.masters masters := *v.masters

View file

@ -18,8 +18,6 @@ const (
NeedleMapLevelDb // small memory footprint, 4MB total, 1 write buffer, 3 block buffer NeedleMapLevelDb // small memory footprint, 4MB total, 1 write buffer, 3 block buffer
NeedleMapLevelDbMedium // medium memory footprint, 8MB total, 3 write buffer, 5 block buffer NeedleMapLevelDbMedium // medium memory footprint, 8MB total, 3 write buffer, 5 block buffer
NeedleMapLevelDbLarge // large memory footprint, 12MB total, 4write buffer, 8 block buffer NeedleMapLevelDbLarge // large memory footprint, 12MB total, 4write buffer, 8 block buffer
NeedleMapBoltDb
NeedleMapBtree
) )
type NeedleMapper interface { type NeedleMapper interface {