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:
committed by
Daniele Sciascia
parent
36346beab4
commit
3389074e24
@ -48,7 +48,7 @@ namespace db
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
bool is_xa_prepare () const override
|
bool is_xa_prepare() const override
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -185,7 +185,6 @@ int wsrep::transaction::next_fragment(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void wsrep::transaction::adopt(const wsrep::transaction& transaction)
|
void wsrep::transaction::adopt(const wsrep::transaction& transaction)
|
||||||
{
|
{
|
||||||
debug_log_state("adopt enter");
|
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())
|
if (streaming_context_.fragment_size_exceeded() || client_service_.is_xa_prepare())
|
||||||
{
|
{
|
||||||
// Some statements have no effect. Do not atttempt to
|
// Some statements have no effect. Do not atttempt to
|
||||||
// replicate a fragment if no data has been generated
|
// replicate a fragment if no data has been generated since
|
||||||
// since last fragment replication, and statement is not XA PREPARE.
|
// 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())
|
if (bytes_to_replicate <= 0 && !client_service_.is_xa_prepare())
|
||||||
{
|
{
|
||||||
assert(bytes_to_replicate == 0);
|
assert(bytes_to_replicate == 0);
|
||||||
|
Reference in New Issue
Block a user