Navigation Menu

Skip to content

Commit

Permalink
mysql57: follow enum thr_lock_type change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 14, 2015
1 parent 4a3a874 commit cbfeae1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ha_mroonga.cpp
Expand Up @@ -296,13 +296,20 @@ static const char *mrn_inspect_thr_lock_type(enum thr_lock_type lock_type)
case TL_WRITE_ALLOW_READ:
inspected = "TL_WRITE_ALLOW_READ";
break;
#endif
#ifdef MRN_HAVE_TL_WRITE_CONCURRENT_DEFAULT
case TL_WRITE_CONCURRENT_DEFAULT:
inspected = "TL_WRITE_CONCURRENT_DEFAULT";
break;
#endif
case TL_WRITE_CONCURRENT_INSERT:
inspected = "TL_WRITE_CONCURRENT_INSERT";
break;
#ifdef MRN_HAVE_TL_WRITE_DELAYED
case TL_WRITE_DELAYED:
inspected = "TL_WRITE_DELAYED";
break;
#endif
case TL_WRITE_DEFAULT:
inspected = "TL_WRITE_DEFAULT";
break;
Expand Down
8 changes: 8 additions & 0 deletions ha_mroonga.hpp
Expand Up @@ -145,6 +145,14 @@ extern "C" {
# define MRN_HAVE_TL_WRITE_ALLOW_READ
#endif

#if MYSQL_VERSION_ID < 50706 && !defined(MRN_MARIADB_P)
# define MRN_HAVE_TL_WRITE_DELAYED
#endif

#if MYSQL_VERSION_ID >= 50706 && !defined(MRN_MARIADB_P)
# define MRN_HAVE_TL_WRITE_CONCURRENT_DEFAULT
#endif

#if (defined(MRN_MARIADB_P) && \
((MYSQL_VERSION_ID >= 50306 && MYSQL_VERSION_ID < 50500) || \
MYSQL_VERSION_ID >= 50523))
Expand Down

0 comments on commit cbfeae1

Please sign in to comment.