diff --git a/weed/command/volume.go b/weed/command/volume.go index 88aee95ae..b87555456 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -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 diff --git a/weed/storage/needle_map.go b/weed/storage/needle_map.go index ee31b06f6..92fc06aae 100644 --- a/weed/storage/needle_map.go +++ b/weed/storage/needle_map.go @@ -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 {