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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user