Navigation Menu

Skip to content

Commit

Permalink
[mysql-5.6] handler::index_prev() is protected. refs #1046
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 12, 2011
1 parent 39edc3f commit 98dfa5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -3781,7 +3781,11 @@ int ha_mroonga::wrapper_index_prev(uchar *buf)
MRN_SET_WRAP_TABLE_KEY(this, table);
if (fulltext_searching)
set_pk_bitmap();
#ifdef MRN_HANDLER_HAVE_HA_INDEX_NEXT
error = wrap_handler->ha_index_prev(buf);
#else
error = wrap_handler->index_prev(buf);
#endif
MRN_SET_BASE_SHARE_KEY(share, table->s);
MRN_SET_BASE_TABLE_KEY(this, table);
DBUG_RETURN(error);
Expand Down
8 changes: 7 additions & 1 deletion ha_mroonga.h
Expand Up @@ -42,6 +42,7 @@ extern "C" {
# define MRN_HANDLER_HAVE_HA_RND_NEXT 1
# define MRN_HANDLER_HAVE_HA_RND_POS 1
# define MRN_HANDLER_HAVE_HA_INDEX_NEXT 1
# define MRN_HANDLER_HAVE_HA_INDEX_PREV 1
#endif

#if MYSQL_VERSION_ID < 50600
Expand Down Expand Up @@ -187,7 +188,9 @@ class ha_mroonga: public handler
#ifndef MRN_HANDLER_HAVE_HA_INDEX_NEXT
int index_next(uchar *buf);
#endif
int index_prev(uchar * buf);
#ifndef MRN_HANDLER_HAVE_HA_INDEX_PREV
int index_prev(uchar *buf);
#endif
int index_first(uchar * buf);
int index_last(uchar * buf);
int index_next_same(uchar *buf, const uchar *key, uint keylen);
Expand Down Expand Up @@ -254,6 +257,9 @@ class ha_mroonga: public handler
#ifdef MRN_HANDLER_HAVE_HA_INDEX_NEXT
int index_next(uchar *buf);
#endif
#ifdef MRN_HANDLER_HAVE_HA_INDEX_PREV
int index_prev(uchar *buf);
#endif

private:
#ifdef MRN_HANDLER_HAVE_HA_CLOSE
Expand Down

0 comments on commit 98dfa5a

Please sign in to comment.