mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
More porting from rep (#2388)
* More porting from rep * Address review feedback
This commit is contained in:
@@ -38,7 +38,7 @@ type Config struct {
|
||||
}
|
||||
|
||||
// DevConfig is a Config that is used for dev mode of Vault.
|
||||
func DevConfig(ha bool) *Config {
|
||||
func DevConfig(ha, transactional bool) *Config {
|
||||
ret := &Config{
|
||||
DisableCache: false,
|
||||
DisableMlock: true,
|
||||
@@ -63,7 +63,12 @@ func DevConfig(ha bool) *Config {
|
||||
DefaultLeaseTTL: 32 * 24 * time.Hour,
|
||||
}
|
||||
|
||||
if ha {
|
||||
switch {
|
||||
case ha && transactional:
|
||||
ret.Backend.Type = "inmem_transactional_ha"
|
||||
case !ha && transactional:
|
||||
ret.Backend.Type = "inmem_transactional"
|
||||
case ha && !transactional:
|
||||
ret.Backend.Type = "inmem_ha"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user