summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2019-03-14 16:32:33 -0700
committerAndy McCurdy <andy@andymccurdy.com>2019-03-14 16:32:33 -0700
commitd61a15e2be5fdeb165b98e63912ab88845ab1315 (patch)
tree1716c1f4488b50bd6d982499fa17eee2fe4f3ce3
parent31519e4ccef49fb59254ee5524007c81faa7e850 (diff)
downloadredis-py-sentinel_pool_fix.tar.gz
remove unneccessary checkpid from SentinelConnectionPoolsentinel_pool_fix
-rw-r--r--redis/sentinel.py12
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):
"""