diff --git a/storage/tokudb/ha_tokudb.cc b/storage/tokudb/ha_tokudb.cc index 12465fd25a2..06e9513ea43 100644 --- a/storage/tokudb/ha_tokudb.cc +++ b/storage/tokudb/ha_tokudb.cc @@ -2331,12 +2331,7 @@ int ha_tokudb::read_row(int error, uchar * buf, uint keynr, DBT * row, DBT * fou unpack_row(buf, ¤t_row, &key); } else { - if (key_read && !hidden_primary_key) { - unpack_key(buf, found_key, keynr); - } - else { - unpack_row(buf, row, found_key); - } + unpack_row(buf, row, found_key); } if (found_key) { DBUG_DUMP("read row key", (uchar *) found_key->data, found_key->size); } TOKUDB_DBUG_RETURN(0);