mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Improved logging output of ws_meta
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user