From 62b1a346ef33e0d4aa84a568e32a53550b75b590 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 20 Dec 2019 20:57:38 -0800 Subject: [PATCH] set default --- weed/filer2/redis/redis_cluster_store.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weed/filer2/redis/redis_cluster_store.go b/weed/filer2/redis/redis_cluster_store.go index 379b7a2db..b17bfed14 100644 --- a/weed/filer2/redis/redis_cluster_store.go +++ b/weed/filer2/redis/redis_cluster_store.go @@ -19,6 +19,10 @@ func (store *RedisClusterStore) GetName() string { } func (store *RedisClusterStore) Initialize(configuration util.Configuration) (err error) { + + configuration.SetDefault("useReadOnly", false) + configuration.SetDefault("routeByLatency", false) + return store.initialize( configuration.GetStringSlice("addresses"), configuration.GetString("password"),