remove ha_tokudb::index_read_last and use the default implementation. closes #645

git-svn-id: file:///svn/mysql/tokudb-engine/src@3287 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2013-04-17 00:01:40 -04:00 committed by Yoni Fogel
parent 0e24b83932
commit 0dbaf10a08
2 changed files with 6 additions and 1 deletions

View file

@ -750,6 +750,7 @@ static int tokudb_prefix_cmp_packed_key(DB * file, const DBT * new_key, const DB
return 0;
}
#if 0
/* Compare key against row */
static bool tokudb_key_cmp(TABLE * table, KEY * key_info, const uchar * key, uint key_length) {
KEY_PART_INFO *key_part = key_info->key_part, *end = key_part + key_info->key_parts;
@ -780,6 +781,7 @@ static bool tokudb_key_cmp(TABLE * table, KEY * key_info, const uchar * key, uin
}
return 0; // Identical keys
}
#endif
int ha_tokudb::open(const char *name, int mode, uint test_if_locked) {
TOKUDB_DBUG_ENTER("ha_tokudb::open");
@ -1893,6 +1895,7 @@ return END_OF_FILE instead of just NOT_FOUND
TOKUDB_DBUG_RETURN(error);
}
#if 0
/*
Read last key is solved by reading the next key and then reading
the previous key
@ -1919,7 +1922,7 @@ int ha_tokudb::index_read_last(uchar * buf, const uchar * key, uint key_len) {
error = HA_ERR_KEY_NOT_FOUND;
TOKUDB_DBUG_RETURN(error);
}
#endif
int ha_tokudb::index_next(uchar * buf) {
TOKUDB_DBUG_ENTER("ha_tokudb::index_next");

View file

@ -103,7 +103,9 @@ class ha_tokudb : public handler {
int index_end();
int index_read(uchar * buf, const uchar * key, uint key_len, enum ha_rkey_function find_flag);
int index_read_idx(uchar * buf, uint index, const uchar * key, uint key_len, enum ha_rkey_function find_flag);
#if 0
int index_read_last(uchar * buf, const uchar * key, uint key_len);
#endif
int index_next(uchar * buf);
int index_next_same(uchar * buf, const uchar * key, uint keylen);
int index_prev(uchar * buf);