MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / set_server_version

Function set_server_version

sql/mysqld.cc:2145–2158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2143*/
2144
2145static void set_server_version(void)
2146{
2147 char *end= strxmov(server_version, MYSQL_SERVER_VERSION,
2148 MYSQL_SERVER_SUFFIX_STR, NullS);
2149#ifdef EMBEDDED_LIBRARY
2150 end= strmov(end, "-embedded");
2151#endif
2152#ifndef DBUG_OFF
2153 if (!strstr(MYSQL_SERVER_SUFFIX_STR, "-debug"))
2154 end= strmov(end, "-debug");
2155#endif
2156 if (opt_log)
2157 strmov(end, "-log"); // This may slow down system
2158}
2159
2160
2161static char *get_relative_path(const char *path)

Callers 2

init_common_variablesFunction · 0.85
print_versionFunction · 0.85

Calls 2

strxmovFunction · 0.85
strmovFunction · 0.85

Tested by

no test coverage detected