Commit 61b2cd38 authored by Sergei Golubchik's avatar Sergei Golubchik Committed by Sachin

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 a1e90193
......@@ -6752,7 +6752,7 @@ int handler::ha_write_row(const uchar *buf)
mark_trx_read_write();
increment_statistics(&SSV::ha_write_count);
if (table->s->long_unique_table)
if (table->s->long_unique_table && this == table->file)
{
DBUG_ASSERT(inited == NONE || lookup_handler != this);
if ((error= check_duplicate_long_entries(buf)))
......
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