From 3555628ad5e4aa5530183eebfdb99d7d94d193c9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 9 Apr 2019 10:08:59 -0700 Subject: [PATCH] weed volume: fix bug, remove boltdb, btree --- weed/command/volume.go | 4 ++-- weed/storage/needle_map.go | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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 {