mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
filer: redis default to false for useReadOnly and routeByLatency
This commit is contained in:
parent
40161c9cec
commit
e2e0e30a51
|
@ -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+"useReadOnly", false)
|
||||||
configuration.SetDefault(prefix+"routeByLatency", true)
|
configuration.SetDefault(prefix+"routeByLatency", false)
|
||||||
|
|
||||||
return store.initialize(
|
return store.initialize(
|
||||||
configuration.GetStringSlice(prefix+"addresses"),
|
configuration.GetStringSlice(prefix+"addresses"),
|
||||||
|
|
|
@ -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+"useReadOnly", false)
|
||||||
configuration.SetDefault(prefix+"routeByLatency", true)
|
configuration.SetDefault(prefix+"routeByLatency", false)
|
||||||
|
|
||||||
return store.initialize(
|
return store.initialize(
|
||||||
configuration.GetStringSlice(prefix+"addresses"),
|
configuration.GetStringSlice(prefix+"addresses"),
|
||||||
|
|
Loading…
Reference in a new issue