better support for mariadb (including offsets for 5.5.32-36). Added offsets for 5.5.37 and 5.6.17.

This commit is contained in:
Guy Lichtman
2014-04-17 11:52:47 +03:00
parent f2153dbeee
commit a6d41da62e
2 changed files with 62 additions and 4 deletions

View File

@@ -62,9 +62,10 @@
# endif
#endif
//MariaDB doesn't have my_getsystime function. They replaced with my_hrtime_t my_hrtime()
//MariaDB doesn't have my_getsystime (returns 100 nano seconds) function. They replaced with my_hrtime_t my_hrtime() which returns microseconds
#if defined(MARIADB_BASE_VERSION)
#define my_getsystime() (my_hrtime()).val
#define my_getsystime() ((my_hrtime()).val * 10)
//MariaDB has a kill service that overrides thd_killed as a macro. It also has thd_killed function defined for backwards compatibility, so we redefine it.
#undef thd_killed
extern "C" int thd_killed(const MYSQL_THD thd);