MXS-1249: Server version stored as uint64_t value

That allows the version to be updated and read atomically. If
major/minor/patch are stored as separate variables, you can get an
inconsistent set. Now it may be out of date by the time it is used,
but it will never be internally inconsistent.
This commit is contained in:
Johan Wikman
2017-06-19 14:52:47 +03:00
parent 4e73aecdef
commit 997416ab82
5 changed files with 56 additions and 48 deletions

View File

@ -378,6 +378,6 @@ typedef enum service_version_which_t
*/
void service_get_version(const SERVICE *service,
service_version_which_t which,
SERVER_VERSION* version);
uint64_t* version);
MXS_END_DECLS