Commit f3f31eaa authored by Sergei Golubchik's avatar Sergei Golubchik

bugfix: in long uniques don't check for duplicates more than once

in particular, after checking for duplicates in a partitioned table,
do not re-check it for every partition individually
parent 52d79807
...@@ -6647,7 +6647,7 @@ int handler::ha_write_row(const uchar *buf) ...@@ -6647,7 +6647,7 @@ int handler::ha_write_row(const uchar *buf)
mark_trx_read_write(); mark_trx_read_write();
increment_statistics(&SSV::ha_write_count); increment_statistics(&SSV::ha_write_count);
if (table->s->long_unique_table) if (table->s->long_unique_table && this == table->file)
{ {
if (this->inited == RND) if (this->inited == RND)
table->clone_handler_for_update(); table->clone_handler_for_update();
......
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