Commit 5a59f60b authored by Vincent Pelletier's avatar Vincent Pelletier

Also log when tpc_vote or tpc_store fail.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2573 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 0a122977
......@@ -879,6 +879,7 @@ class Application(object):
for oid, store_dict in \
local_var.object_stored_counter_dict.iteritems():
if not store_dict:
neo.logging.error('tpc_store failed')
raise NEOStorageError('tpc_store failed')
elif oid in resolved_oid_set:
append((oid, ResolvedSerial))
......@@ -916,6 +917,7 @@ class Application(object):
# check at least one storage node accepted
if txn_stored_counter == 0:
neo.logging.error('tpc_vote failed')
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