Merge branch '2.1' into develop

This commit is contained in:
Markus Mäkelä
2017-07-06 11:25:36 +03:00
11 changed files with 210 additions and 2 deletions

View File

@ -32,6 +32,12 @@ bool Shard::add_location(std::string db, SERVER* target)
return m_map.insert(std::make_pair(db, target)).second;
}
void Shard::replace_location(std::string db, SERVER* target)
{
std::transform(db.begin(), db.end(), db.begin(), ::tolower);
m_map[db] = target;
}
SERVER* Shard::get_location(std::string db)
{
SERVER* rval = NULL;