Commit 257c7b13 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

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
parent dc457380
......@@ -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");
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment