Commit 02f0d467 authored by Vincent Pelletier's avatar Vincent Pelletier

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.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2519 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fbec5109
......@@ -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
......
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