[Neo-report] r2519 vincent - /trunk/neo/client/app.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Dec 13 11:56:21 CET 2010
Author: vincent
Date: Mon Dec 13 11:56:21 2010
New Revision: 2519
Log:
Fix the naming of voted_counter.
Storage doesn't vote here, it only stores transaction metadata. And we do
want to make sure it was stored at least once.
Modified:
trunk/neo/client/app.py
Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Mon Dec 13 11:56:21 2010
@@ -788,7 +788,7 @@ class Application(object):
tid = local_var.tid
# Store data on each node
- voted_counter = 0
+ txn_stored_counter = 0
p = Packets.AskStoreTransaction(tid, str(transaction.user),
str(transaction.description), dumps(transaction._extension),
local_var.data_list)
@@ -805,10 +805,10 @@ class Application(object):
add_involved_nodes(cell.getNode())
except ConnectionClosed:
continue
- voted_counter += 1
+ txn_stored_counter += 1
# check at least one storage node accepted
- if voted_counter == 0:
+ if txn_stored_counter == 0:
raise NEOStorageError('tpc_vote failed')
# Check if master connection is still alive.
# This is just here to lower the probability of detecting a problem
More information about the Neo-report
mailing list