Browse Source

filer: redis default to false for useReadOnly and routeByLatency

pull/1743/head
Chris Lu 4 years ago
parent
commit
e2e0e30a51
  1. 4
      weed/filer/redis/redis_cluster_store.go
  2. 4
      weed/filer/redis2/redis_cluster_store.go

4
weed/filer/redis/redis_cluster_store.go

@ -20,8 +20,8 @@ func (store *RedisClusterStore) GetName() string {
func (store *RedisClusterStore) Initialize(configuration util.Configuration, prefix string) (err error) { func (store *RedisClusterStore) Initialize(configuration util.Configuration, prefix string) (err error) {
configuration.SetDefault(prefix+"useReadOnly", true)
configuration.SetDefault(prefix+"routeByLatency", true)
configuration.SetDefault(prefix+"useReadOnly", false)
configuration.SetDefault(prefix+"routeByLatency", false)
return store.initialize( return store.initialize(
configuration.GetStringSlice(prefix+"addresses"), configuration.GetStringSlice(prefix+"addresses"),

4
weed/filer/redis2/redis_cluster_store.go

@ -20,8 +20,8 @@ func (store *RedisCluster2Store) GetName() string {
func (store *RedisCluster2Store) Initialize(configuration util.Configuration, prefix string) (err error) { func (store *RedisCluster2Store) Initialize(configuration util.Configuration, prefix string) (err error) {
configuration.SetDefault(prefix+"useReadOnly", true)
configuration.SetDefault(prefix+"routeByLatency", true)
configuration.SetDefault(prefix+"useReadOnly", false)
configuration.SetDefault(prefix+"routeByLatency", false)
return store.initialize( return store.initialize(
configuration.GetStringSlice(prefix+"addresses"), configuration.GetStringSlice(prefix+"addresses"),

Loading…
Cancel
Save