mirror of
https://github.com/MariaDB/server.git
synced 2025-07-18 23:03:28 +03:00
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
This commit is contained in:
@ -6647,7 +6647,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)
|
||||
{
|
||||
if (this->inited == RND)
|
||||
table->clone_handler_for_update();
|
||||
|
Reference in New Issue
Block a user