mirror of
https://github.com/codership/wsrep-lib.git
synced 2026-10-23 09:48:57 +03:00
Improve "Unallowed state transition" warning
In client_state, change warning "Unallowed state transition" to print state names instead of numbers.
This commit is contained in:
@@ -1038,8 +1038,9 @@ void wsrep::client_state::state(
|
||||
};
|
||||
if (!allowed[state_][state])
|
||||
{
|
||||
wsrep::log_warning() << "client_state: Unallowed state transition: "
|
||||
<< state_ << " -> " << state;
|
||||
wsrep::log_warning()
|
||||
<< "client_state: Unallowed state transition: "
|
||||
<< wsrep::to_string(state_) << " -> " << wsrep::to_string(state);
|
||||
assert(0);
|
||||
}
|
||||
state_hist_.push_back(state_);
|
||||
|
||||
Reference in New Issue
Block a user