Browse Source

weed volume: fix bug, remove boltdb, btree

pull/925/head
Chris Lu 6 years ago
parent
commit
3555628ad5
  1. 4
      weed/command/volume.go
  2. 2
      weed/storage/needle_map.go

4
weed/command/volume.go

@ -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

2
weed/storage/needle_map.go

@ -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 {

Loading…
Cancel
Save