Remove depth field from SERVER

It was not really used anymore.
This commit is contained in:
Esa Korhonen
2018-06-27 14:07:12 +03:00
parent 960d08a36a
commit a59c0c61ce
7 changed files with 13 additions and 42 deletions

View File

@ -244,14 +244,12 @@ static void log_server_connections(select_criteria_t criteria, const SRWBackendL
SRWBackend get_root_master(const SRWBackendList& backends)
{
SRWBackend master;
for (auto it = backends.begin(); it != backends.end(); it++)
for (auto candidate : backends)
{
auto b = *it;
if (b->is_master() && (!master || b->server()->depth < master->server()->depth))
if (candidate->is_master())
{
master = b;
master = candidate;
break;
}
}