Commit 0ff7ad06 authored by Vincent Pelletier's avatar Vincent Pelletier

Some more changes forgoten in r915.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@919 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 622d8dd9
...@@ -123,7 +123,7 @@ class PartitionTable(object): ...@@ -123,7 +123,7 @@ class PartitionTable(object):
readable, writable) readable, writable)
def _getPartitionFromIndex(self, index): def _getPartitionFromIndex(self, index):
return u64(index) % self.np return index % self.np
def setCell(self, offset, node, state): def setCell(self, offset, node, state):
assert state in VALID_CELL_STATE_LIST assert state in VALID_CELL_STATE_LIST
...@@ -276,8 +276,12 @@ class MTPartitionTable(PartitionTable): ...@@ -276,8 +276,12 @@ class MTPartitionTable(PartitionTable):
self._lock.release() self._lock.release()
@thread_safe @thread_safe
def getCellListForID(self, *args, **kwargs): def getCellListForTID(self, *args, **kwargs):
return PartitionTable.getCellListForID(self, *args, **kwargs) return PartitionTable.getCellListForTID(self, *args, **kwargs)
@thread_safe
def getCellListForOID(self, *args, **kwargs):
return PartitionTable.getCellListForOID(self, *args, **kwargs)
@thread_safe @thread_safe
def setCell(self, *args, **kwargs): def setCell(self, *args, **kwargs):
......
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