From 2c1aaff70833cd38e67a95390c77e4cd64202cd1 Mon Sep 17 00:00:00 2001 From: Aymeric Ducroquetz Date: Mon, 30 Sep 2019 09:38:49 +0200 Subject: [PATCH] CH: Fix connection to redis slave --- oioswift/common/middleware/container_hierarchy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oioswift/common/middleware/container_hierarchy.py b/oioswift/common/middleware/container_hierarchy.py index 2c30f1d1..6aa438ce 100644 --- a/oioswift/common/middleware/container_hierarchy.py +++ b/oioswift/common/middleware/container_hierarchy.py @@ -115,7 +115,7 @@ def conn(self): def conn_slave(self): """Retrieve Redis connection (normal or sentinel)""" if self._sentinel: - return self._sentinel.master_for(self._sentinel_name) + return self._sentinel.slave_for(self._sentinel_name) return self.conn def register_script(self, script):