From 24cd49b23fc790e8bd00ffcef052bc4d3b32e1d1 Mon Sep 17 00:00:00 2001 From: Daniele Sciascia Date: Thu, 14 Feb 2019 00:04:53 +0100 Subject: [PATCH] Improved logging output of ws_meta --- include/wsrep/provider.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wsrep/provider.hpp b/include/wsrep/provider.hpp index b1a7bce..dee6224 100644 --- a/include/wsrep/provider.hpp +++ b/include/wsrep/provider.hpp @@ -179,6 +179,8 @@ namespace wsrep int flags_; }; + std::string flags_to_string(int flags); + static inline std::ostream& operator<<(std::ostream& os, const wsrep::ws_meta& ws_meta) { @@ -186,7 +188,7 @@ namespace wsrep << " server_id: " << ws_meta.server_id() << " client_id: " << ws_meta.client_id() << " trx_id: " << ws_meta.transaction_id() - << " flags: " << ws_meta.flags(); + << " flags: " << ws_meta.flags() << " (" << wsrep::flags_to_string(ws_meta.flags()) << ")"; return os; } @@ -440,8 +442,6 @@ namespace wsrep wsrep::server_state& server_state_; }; - std::string flags_to_string(int flags); - static inline bool starts_transaction(int flags) { return (flags & wsrep::provider::flag::start_transaction);