[Neo-report] r2078 vincent - /trunk/neo/storage/handlers/client.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 6 11:45:50 CEST 2010
Author: vincent
Date: Thu May 6 11:45:48 2010
New Revision: 2078
Log:
Exception handling is only meant for storeObject call.
Modified:
trunk/neo/storage/handlers/client.py
Modified: trunk/neo/storage/handlers/client.py
==============================================================================
--- trunk/neo/storage/handlers/client.py [iso-8859-1] (original)
+++ trunk/neo/storage/handlers/client.py [iso-8859-1] Thu May 6 11:45:48 2010
@@ -48,7 +48,6 @@
try:
self.app.tm.storeObject(uuid, tid, serial, oid, compression,
checksum, data, None)
- conn.answer(Packets.AnswerStoreObject(0, oid, serial))
except ConflictError, err:
# resolvable or not
tid_or_serial = err.getTID()
@@ -57,6 +56,8 @@
# locked by a previous transaction, retry later
self.app.queueEvent(self.askStoreObject, conn, oid, serial,
compression, checksum, data, tid)
+ else:
+ conn.answer(Packets.AnswerStoreObject(0, oid, serial))
def askTIDs(self, conn, first, last, partition):
# This method is complicated, because I must return TIDs only
More information about the Neo-report
mailing list