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

comments and style fixes

This commit is contained in:
Leandro Pacheco
2019-02-11 14:51:43 +01:00
committed by Daniele Sciascia
parent 36346beab4
commit 3389074e24
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ namespace db
{
return false;
}
bool is_xa_prepare () const override
bool is_xa_prepare() const override
{
return false;
}

View File

@ -185,7 +185,6 @@ int wsrep::transaction::next_fragment(
return 0;
}
void wsrep::transaction::adopt(const wsrep::transaction& transaction)
{
debug_log_state("adopt enter");
@ -1164,8 +1163,9 @@ int wsrep::transaction::streaming_step(wsrep::unique_lock<wsrep::mutex>& lock)
if (streaming_context_.fragment_size_exceeded() || client_service_.is_xa_prepare())
{
// Some statements have no effect. Do not atttempt to
// replicate a fragment if no data has been generated
// since last fragment replication, and statement is not XA PREPARE.
// replicate a fragment if no data has been generated since
// last fragment replication. A XA PREPARE statement generates a
// fragment even if no data is currently pending replication.
if (bytes_to_replicate <= 0 && !client_service_.is_xa_prepare())
{
assert(bytes_to_replicate == 0);