1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-03 16:22:35 +03:00

Updated wsrep-API, added -Wconversion to compiler flags, fixed errors.

This commit is contained in:
Teemu Ollakka
2019-10-10 13:54:05 +03:00
parent 58aa3e821f
commit 477a71dd46
18 changed files with 107 additions and 88 deletions

View File

@ -824,8 +824,8 @@ void wsrep::server_state::on_connect(const wsrep::view& view)
throw wsrep::runtime_error(os.str());
}
if (id_.is_undefined() == false &&
id_ != view.members()[view.own_index()].id())
const size_t own_index(static_cast<size_t>(view.own_index()));
if (id_.is_undefined() == false && id_ != view.members()[own_index].id())
{
std::ostringstream os;
os << "Connection in connected state.\n"
@ -840,7 +840,7 @@ void wsrep::server_state::on_connect(const wsrep::view& view)
}
else
{
id_ = view.members()[view.own_index()].id();
id_ = view.members()[own_index].id();
}
wsrep::log_info() << "Server "