Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2020-05-14 18:55:51 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2020-05-18 15:16:47 +0300
commit794a04d9e7230ac583b55a4205b3cbe85f60292b (patch)
treef3b296b4853adeb68959c5f0e9c5ab510756c81e /internal/praefect/config
parent69493a692e4173b8cfc59b56b218efe32a2ebca4 (diff)
Replace read-only feature flag with a config toggle
Removes the feature-flag controlling read-only enforcement. The feature flag only controlled enforcement in RPCs, making future upgrades more difficult as some storages could already be in read-only mode when the feature flag is removed. The feature flag is replaced with a config toggle that also controls whether the storages should be set read-only on a failover.
Diffstat (limited to 'internal/praefect/config')
-rw-r--r--internal/praefect/config/config.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/praefect/config/config.go b/internal/praefect/config/config.go
index fb28f2a20..510eada28 100644
--- a/internal/praefect/config/config.go
+++ b/internal/praefect/config/config.go
@@ -15,8 +15,9 @@ import (
)
type Failover struct {
- Enabled bool `toml:"enabled"`
- ElectionStrategy string `toml:"election_strategy"`
+ Enabled bool `toml:"enabled"`
+ ElectionStrategy string `toml:"election_strategy"`
+ ReadOnlyAfterFailover bool `toml:"read_only_after_failover"`
}
// Config is a container for everything found in the TOML config file