Skip to content

Commit

Permalink
Passing is_master flag through on reset
Browse files Browse the repository at this point in the history
 - is_master is not passed through when recreating the ConnectionPool.
 - This was causing unexpected behaviour where we would specifiy that we
   wish to connect to the slave, but the master would be read from
   instead.
  • Loading branch information
jonathanfrawley committed Sep 18, 2014
1 parent 499311a commit 0451d8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redis/sentinel.py
Expand Up @@ -129,6 +129,7 @@ def _checkpid(self):
self.disconnect()
self.reset()
self.__init__(self.service_name, self.sentinel_manager,
is_master=self.is_master,
connection_class=self.connection_class,
max_connections=self.max_connections,
**self.connection_kwargs)
Expand Down

0 comments on commit 0451d8d

Please sign in to comment.