Commit cbd26197 authored by Vincent Pelletier's avatar Vincent Pelletier

Rename "node" variable to "cell", since it's actualy a partition cell.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@330 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent f3e9bc85
...@@ -58,13 +58,13 @@ class ConnectionPool(object): ...@@ -58,13 +58,13 @@ class ConnectionPool(object):
self.connection_lock_acquire = l.acquire self.connection_lock_acquire = l.acquire
self.connection_lock_release = l.release self.connection_lock_release = l.release
def _initNodeConnection(self, node): def _initNodeConnection(self, cell):
"""Init a connection to a given storage node.""" """Init a connection to a given storage node."""
addr = node.getNode().getServer() addr = cell.getNode().getServer()
if addr is None: if addr is None:
return None return None
if node.getState() != RUNNING_STATE: if cell.getState() != RUNNING_STATE:
return None return None
app = self.app app = self.app
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment