Commit 88523ecd authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1711

get clustering keys working on updates

git-svn-id: file:///svn/mysql/tokudb-engine/src@11422 c7de825b-a66e-492c-adef-691d508d4ae1
parent 840087c4
...@@ -2519,7 +2519,11 @@ int ha_tokudb::update_row(const uchar * old_row, uchar * new_row) { ...@@ -2519,7 +2519,11 @@ int ha_tokudb::update_row(const uchar * old_row, uchar * new_row) {
if (keynr == primary_key) { if (keynr == primary_key) {
continue; continue;
} }
if (key_cmp(keynr, old_row, new_row) || primary_key_changed) { if (table->key_info[keynr].flags & HA_CLUSTERING ||
key_cmp(keynr, old_row, new_row) ||
primary_key_changed
)
{
u_int32_t put_flags; u_int32_t put_flags;
if ((error = remove_key(txn, keynr, old_row, &old_prim_key))) { if ((error = remove_key(txn, keynr, old_row, &old_prim_key))) {
goto cleanup; goto cleanup;
......
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