From 3389074e24afb029bf8e5576168c23059554b702 Mon Sep 17 00:00:00 2001 From: Leandro Pacheco Date: Mon, 11 Feb 2019 14:51:43 +0100 Subject: [PATCH] comments and style fixes --- dbsim/db_client_service.hpp | 2 +- src/transaction.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dbsim/db_client_service.hpp b/dbsim/db_client_service.hpp index 6cf3729..fdcbb52 100644 --- a/dbsim/db_client_service.hpp +++ b/dbsim/db_client_service.hpp @@ -48,7 +48,7 @@ namespace db { return false; } - bool is_xa_prepare () const override + bool is_xa_prepare() const override { return false; } diff --git a/src/transaction.cpp b/src/transaction.cpp index 25a4d82..26a728b 100644 --- a/src/transaction.cpp +++ b/src/transaction.cpp @@ -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& 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);