Commit d3e07066 authored by Julien Muchembled's avatar Julien Muchembled

Remove debugging code and comment about possible optimization with Python >= 2.5

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2766 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 862b0ba4
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
from cPickle import dumps, loads from cPickle import dumps, loads
from zlib import compress as real_compress, decompress from zlib import compress as real_compress, decompress
from neo.lib.locking import Empty from neo.lib.locking import Empty
from random import shuffle
import time import time
import os import os
...@@ -833,7 +832,7 @@ class Application(object): ...@@ -833,7 +832,7 @@ class Application(object):
ttid = txn_context['ttid'] ttid = txn_context['ttid']
for partition, oid_list in partition_oid_dict.iteritems(): for partition, oid_list in partition_oid_dict.iteritems():
cell_list = getCellList(partition, readable=True) cell_list = getCellList(partition, readable=True)
shuffle(cell_list) # BBB: min(..., key=...) requires Python >= 2.5
cell_list.sort(key=getCellSortKey) cell_list.sort(key=getCellSortKey)
storage_conn = getConnForCell(cell_list[0]) storage_conn = getConnForCell(cell_list[0])
storage_conn.ask(Packets.AskObjectUndoSerial(ttid, storage_conn.ask(Packets.AskObjectUndoSerial(ttid,
......
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