1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-22185 Failing assertion: node->pcur->rel_pos == BTR_PCUR_ON or ER_KEY_NOT_FOUND or Assertion `inited==NONE' failed in handler::ha_index_init

long unique checks should be done for a partitioned table as a whole,
not for individual partitions.

Followup for f3f31eaa8e that extends it to UPDATE
This commit is contained in:
Sergei Golubchik
2020-05-04 10:48:39 +02:00
parent 67aaf51cf9
commit 18502f99eb
3 changed files with 13 additions and 1 deletions

View File

@ -7009,7 +7009,7 @@ int handler::ha_update_row(const uchar *old_data, const uchar *new_data)
MYSQL_UPDATE_ROW_START(table_share->db.str, table_share->table_name.str);
mark_trx_read_write();
increment_statistics(&SSV::ha_update_count);
if (table->s->long_unique_table &&
if (table->s->long_unique_table && this == table->file &&
(error= check_duplicate_long_entries_update(new_data)))
{
return error;