aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-04-09 09:42:06 -0700
committerChris Lu <chris.lu@gmail.com>2019-04-09 09:42:06 -0700
commit8a5ce16e967974e9a22f66fd64c991944d2206e2 (patch)
treec4cae734bc456c5a740ef2a991c2352f846b67f9 /weed/command/volume.go
parent9924fa3b1a291ac6efe856619cfe98e21900ae87 (diff)
downloadseaweedfs-8a5ce16e967974e9a22f66fd64c991944d2206e2.tar.xz
seaweedfs-8a5ce16e967974e9a22f66fd64c991944d2206e2.zip
weed volume: remove boltdb, btree options, add options for leveldb medium, large
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 2ee6bb11a..88aee95ae 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -58,7 +58,7 @@ func init() {
v.maxCpu = cmdVolume.Flag.Int("maxCpu", 0, "maximum number of CPUs. 0 means all available CPUs")
v.dataCenter = cmdVolume.Flag.String("dataCenter", "", "current volume server's data center name")
v.rack = cmdVolume.Flag.String("rack", "", "current volume server's rack name")
- v.indexType = cmdVolume.Flag.String("index", "memory", "Choose [memory|leveldb|boltdb|btree] mode for memory~performance balance.")
+ v.indexType = cmdVolume.Flag.String("index", "memory", "Choose [memory|leveldb|leveldbMedium|leveldbLarge] mode for memory~performance balance.")
v.fixJpgOrientation = cmdVolume.Flag.Bool("images.fix.orientation", false, "Adjust jpg orientation when uploading.")
v.readRedirect = cmdVolume.Flag.Bool("read.redirect", true, "Redirect moved or non-local volumes.")
v.cpuProfile = cmdVolume.Flag.String("cpuprofile", "", "cpu profile output file")
@@ -142,10 +142,10 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
switch *v.indexType {
case "leveldb":
volumeNeedleMapKind = storage.NeedleMapLevelDb
- case "boltdb":
+ case "leveldbMedium":
+ volumeNeedleMapKind = storage.NeedleMapBoltDb
+ case "leveldbLarge":
volumeNeedleMapKind = storage.NeedleMapBoltDb
- case "btree":
- volumeNeedleMapKind = storage.NeedleMapBtree
}
masters := *v.masters