Navigation Menu

Skip to content

Commit

Permalink
[mysql51] fix build failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 11, 2012
1 parent 08ba491 commit ff1b0cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -364,6 +364,11 @@ static const char *mrn_inspect_thr_lock_type(enum thr_lock_type lock_type)
case TL_WRITE_ALLOW_WRITE:
inspected = "TL_WRITE_ALLOW_WRITE";
break;
#ifdef MRN_HAVE_TL_WRITE_ALLOW_READ
case TL_WRITE_ALLOW_READ:
inspected = "TL_WRITE_ALLOW_READ";
break;
#endif
case TL_WRITE_CONCURRENT_INSERT:
inspected = "TL_WRITE_CONCURRENT_INSERT";
break;
Expand Down
4 changes: 4 additions & 0 deletions ha_mroonga.h
Expand Up @@ -118,6 +118,10 @@ extern "C" {
# define MRN_FIELD_STORE_TIME_NEED_TYPE
#endif

#if MYSQL_VERSION_ID < 50500
# define MRN_HAVE_TL_WRITE_ALLOW_READ
#endif

class ha_mroonga;

/* structs */
Expand Down

0 comments on commit ff1b0cd

Please sign in to comment.