mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
weed volume: fix bug, remove boltdb, btree
This commit is contained in:
parent
8a5ce16e96
commit
3555628ad5
|
@ -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
|
||||||
|
|
|
@ -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…
Reference in a new issue