diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2019-03-14 16:32:33 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2019-03-14 16:32:33 -0700 |
commit | d61a15e2be5fdeb165b98e63912ab88845ab1315 (patch) | |
tree | 1716c1f4488b50bd6d982499fa17eee2fe4f3ce3 /redis/sentinel.py | |
parent | 31519e4ccef49fb59254ee5524007c81faa7e850 (diff) | |
download | redis-py-d61a15e2be5fdeb165b98e63912ab88845ab1315.tar.gz |
remove unneccessary checkpid from SentinelConnectionPoolsentinel_pool_fix
Diffstat (limited to 'redis/sentinel.py')
-rw-r--r-- | redis/sentinel.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/redis/sentinel.py b/redis/sentinel.py index 9df2997..11263d2 100644 --- a/redis/sentinel.py +++ b/redis/sentinel.py @@ -1,4 +1,3 @@ -import os import random import weakref @@ -125,17 +124,6 @@ class SentinelConnectionPool(ConnectionPool): pass raise SlaveNotFoundError('No slave found for %r' % (self.service_name)) - def _checkpid(self): - if self.pid != os.getpid(): - self.disconnect() - self.reset() - self.__init__(self.service_name, self.sentinel_manager, - is_master=self.is_master, - check_connection=self.check_connection, - connection_class=self.connection_class, - max_connections=self.max_connections, - **self.connection_kwargs) - class Sentinel(object): """ |