Commit b8a7d138 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1803

implement ha_tokudb::index_read_last
using same implementation as every other storage engine

git-svn-id: file:///svn/mysql/tokudb-engine/src@12705 c7de825b-a66e-492c-adef-691d508d4ae1
parent 92408df7
......@@ -3618,6 +3618,12 @@ cleanup:
TOKUDB_DBUG_RETURN(error);
}
int ha_tokudb::index_read_last(uchar * buf, const uchar * key, uint key_len) {
return(index_read(buf, key, key_len, HA_READ_PREFIX_LAST));
}
//
// Reads the previous row from the active index (cursor) into buf, and advances cursor
// Parameters:
......
......@@ -340,9 +340,7 @@ public:
int index_end();
int index_next_same(uchar * buf, const uchar * key, uint keylen);
int index_read(uchar * buf, 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_prev(uchar * buf);
int index_first(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