Commit b8c6f4bf authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

get covering index reads to work by supplying the key from the index to the...

get covering index reads to work by supplying the key from the index to the read row function. addresses #705

git-svn-id: file:///svn/mysql/tokudb-engine/src@3559 c7de825b-a66e-492c-adef-691d508d4ae1
parent 213ba275
...@@ -2202,7 +2202,7 @@ int ha_tokudb::index_read(uchar * buf, const uchar * key, uint key_len, enum ha_ ...@@ -2202,7 +2202,7 @@ int ha_tokudb::index_read(uchar * buf, const uchar * key, uint key_len, enum ha_
error = HA_ERR_UNSUPPORTED; error = HA_ERR_UNSUPPORTED;
break; break;
} }
error = read_row(error, buf, active_index, &row, 0, find_flag != HA_READ_KEY_EXACT); error = read_row(error, buf, active_index, &row, &last_key, find_flag != HA_READ_KEY_EXACT);
if (error && (tokudb_debug & TOKUDB_DEBUG_ERROR)) if (error && (tokudb_debug & TOKUDB_DEBUG_ERROR))
printf("%d:%s:%d:error:%d:%d\n", my_tid(), __FILE__, __LINE__, error, find_flag); printf("%d:%s:%d:error:%d:%d\n", my_tid(), __FILE__, __LINE__, error, find_flag);
TOKUDB_DBUG_RETURN(error); TOKUDB_DBUG_RETURN(error);
......
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