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":
volumeNeedleMapKind = storage.NeedleMapLevelDb
case "leveldbMedium":
volumeNeedleMapKind = storage.NeedleMapBoltDb
volumeNeedleMapKind = storage.NeedleMapLevelDbMedium
case "leveldbLarge":
volumeNeedleMapKind = storage.NeedleMapBoltDb
volumeNeedleMapKind = storage.NeedleMapLevelDbLarge
}
masters := *v.masters

View File

@ -18,8 +18,6 @@ const (
NeedleMapLevelDb // small memory footprint, 4MB total, 1 write buffer, 3 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
NeedleMapBoltDb
NeedleMapBtree
)
type NeedleMapper interface {