Skip to content

Commit

Permalink
CH: Fix connection to redis slave
Browse files Browse the repository at this point in the history
  • Loading branch information
AymericDu authored and fvennetier committed Sep 30, 2019
1 parent 31bd650 commit 2c1aaff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oioswift/common/middleware/container_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2c1aaff

Please sign in to comment.