1
0
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:
Sergei Golubchik
2020-01-24 21:10:07 +01:00
parent 52d7980753
commit f3f31eaa8e

View File

@ -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();