1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-30 07:23:07 +03:00

Split commit_or_rollback_by_xid() in two methods

Split `client_state::commit_or_rollback_by_xid()` into
`client_state::commit_by_xid()` and `client_state::rollback_by_xid()`.
This commit is contained in:
Daniele Sciascia
2019-10-16 10:11:56 +02:00
parent 725f148ddb
commit 682d1b2034
3 changed files with 29 additions and 12 deletions

View File

@ -1209,14 +1209,14 @@ int wsrep::transaction::streaming_step(wsrep::unique_lock<wsrep::mutex>& lock,
assert(streaming_context_.fragment_size() || is_xa());
if (client_service_.bytes_generated() <
streaming_context_.bytes_certified())
streaming_context_.log_position())
{
/* Something went wrong on DBMS side in keeping track of
generated bytes. Return an error to abort the transaction. */
wsrep::log_warning() << "Bytes generated "
<< client_service_.bytes_generated()
<< " less than bytes certified "
<< streaming_context_.bytes_certified()
<< streaming_context_.log_position()
<< ", aborting streaming transaction";
return 1;
}