Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:9apps/ReDiS

  • Loading branch information...
commit 12a0bda289c0936f25fbe4a4fcc9a7ad24f1cd47 2 parents 1efa4ba + 1721088
Jurg van Vliet authored
Showing with 0 additions and 5 deletions.
  1. +0 −5 cluster.py
View
5 cluster.py
@@ -73,7 +73,6 @@ def name(self):
return self.domain.name
def add_node(self, node, endpoint):
- self.metadata = self.domain.new_item('metadata')
try:
head = self.metadata['master']
except:
@@ -111,7 +110,6 @@ def add_node(self, node, endpoint):
return False
def delete_node(self, node):
- self.metadata = self.domain.new_item('metadata')
head = self.metadata['master']
tail = self.metadata['slave']
@@ -147,7 +145,6 @@ def delete_node(self, node):
# looses connection, it can blame its master, and start searching for
# a new master (or become THE master).
def incarcerate_node(self, node):
- self.metadata = self.domain.new_item('metadata')
head = self.metadata['master']
tail = self.metadata['slave']
@@ -191,7 +188,6 @@ def get_endpoint(self, node):
return None
def get_master(self, node=None):
- self.metadata = self.domain.new_item('metadata')
if node == None or node == "":
return self.metadata['master']
@@ -201,7 +197,6 @@ def get_master(self, node=None):
return None
def get_slave(self, node=None):
- self.metadata = self.domain.new_item('metadata')
if node == None or node == "":
return self.metadata['slave']
Please sign in to comment.
Something went wrong with that request. Please try again.