From 41c3041497dcb7d04dcc5781036412bf11567dac Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 10 Dec 2010 10:07:09 +0000 Subject: [PATCH] Do not return anything, tpc_vote does it for us. git-svn-id: https://svn.erp5.org/repos/neo/trunk@2508 71dcc9de-d417-0410-9af5-da40c76e7ee4 --- neo/client/app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/neo/client/app.py b/neo/client/app.py index e76e52af..7e237402 100644 --- a/neo/client/app.py +++ b/neo/client/app.py @@ -926,7 +926,6 @@ class Application(object): else: raise NEOStorageError('undo failed') - tid = self.local_var.tid oid_list = self.local_var.txn_info['oids'] # Regroup objects per partition, to ask a minimum set of storage. @@ -951,8 +950,8 @@ class Application(object): shuffle(cell_list) cell_list.sort(key=getCellSortKey) storage_conn = getConnForCell(cell_list[0]) - storage_conn.ask(Packets.AskObjectUndoSerial(tid, undone_tid, - oid_list), queue=queue) + storage_conn.ask(Packets.AskObjectUndoSerial(self.local_var.tid, + undone_tid, oid_list), queue=queue) # Wait for all AnswerObjectUndoSerial. We might get OidNotFoundError, # meaning that objects in transaction's oid_list do not exist any @@ -996,7 +995,6 @@ class Application(object): 'transaction', oid) undo_serial = None self._store(oid, current_serial, data, undo_serial) - return tid, oid_list def _insertMetadata(self, txn_info, extension): for k, v in loads(extension).items(): -- 2.30.9