Log server version when it changes

Knowing what the server version is can help rule out some
problems. Logging it whenever it changes also helps figure out when
upgrades took place.
This commit is contained in:
Markus Mäkelä
2019-06-12 16:04:36 +03:00
parent 9c1c8053b9
commit cd1b2e8748

View File

@ -810,6 +810,11 @@ uint64_t SERVER::status_from_string(const char* str)
void Server::set_version(uint64_t version_num, const std::string& version_str)
{
if (version_str != version_string())
{
MXS_NOTICE("Server '%s' version: %s", name(), version_str.c_str());
}
m_info.set(version_num, version_str);
}