diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-09-14 03:12:00 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-09-14 03:12:00 +0300 |
commit | 0b5c1838bfa6dbc9f265d95a0d1f6719c8cd0516 (patch) | |
tree | 026edfac0e37ed85f3a552153103abfcedbfe63a /sql/ha_innodb.cc | |
parent | 5886a7d33db9a552ba258221e654e141014fdc1b (diff) | |
download | mariadb-git-0b5c1838bfa6dbc9f265d95a0d1f6719c8cd0516.tar.gz |
ha_innodb.cc:
Add some comments
ha_innodb.h:
Remove the flag HA_NOT_READ_PREFIX_LAST from ha_innodb.h: InnoDB has supported this from the start, but not tested yet
sql/ha_innodb.h:
Remove the flag HA_NOT_READ_PREFIX_LAST from ha_innodb.h: InnoDB has supported this from the start, but not tested yet
sql/ha_innodb.cc:
Add some comments
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r-- | sql/ha_innodb.cc | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index 64c9ecbcb7a..b794270d193 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -2079,7 +2079,10 @@ ha_innobase::index_read( start or end of index; this can also contain an InnoDB row id, in which case key_len is the InnoDB - row id length */ + row id length; the key value can + also be a prefix of a full key value, + and the last column can be a prefix + of a full column */ uint key_len,/* in: key value length */ enum ha_rkey_function find_flag)/* in: search flags from my_base.h */ { @@ -2169,24 +2172,24 @@ ha_innobase::index_read( DBUG_RETURN(error); } - -/* - The following functions works like index_read, but it find the last - row with the current index prefix. - This code is disabled until Heikki has verified that InnoDB support the - HA_READ_PREFIX_LAST flag and removed the HA_NOT_READ_PREFIX_LAST - flag from ha_innodb.h -*/ +/*********************************************************************** +The following functions works like index_read, but it find the last +row with the current key value or prefix. */ int -ha_innobase::index_read_last(mysql_byte *buf, - const mysql_byte *key_ptr, - uint key_len) +ha_innobase::index_read_last( +/*=========================*/ + /* out: 0, HA_ERR_KEY_NOT_FOUND, or an + error code */ + mysql_byte* buf, /* out: fetched row */ + const mysql_byte* key_ptr, /* in: key value, or a prefix of a full + key value */ + uint key_len) /* in: length of the key val or prefix + in bytes */ { - return index_read(buf, key_ptr, key_len, HA_READ_PREFIX_LAST); + return(index_read(buf, key_ptr, key_len, HA_READ_PREFIX_LAST)); } - /************************************************************************ Changes the active index of a handle. */ |