1
0
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:
Daniele Sciascia
2024-04-25 15:37:47 +02:00
parent dfc4bdb8a5
commit 6b879d46c8

View File

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