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);