Merge 10.7 into 10.8

The MDEV-25004 test innodb_fts.versioning is omitted because ever since
commit 685d958e38 InnoDB would not allow
writes to a database where the redo log file ib_logfile0 is missing.
This commit is contained in:
Marko Mäkelä 2023-01-10 14:42:50 +02:00
commit 92c8d6f168
201 changed files with 3246 additions and 2325 deletions

View file

@ -1333,6 +1333,20 @@ dict_index_t::vers_history_row(
{
ut_ad(!is_primary());
/*
Get row_end from clustered index
TODO (optimization): row_end can be taken from unique secondary index
as well. For that dict_index_t::vers_end member should be added and
updated at index init (dict_index_build_internal_non_clust()).
Test case:
create or replace table t1 (x int unique, y int unique,
foreign key r (y) references t1 (x))
with system versioning engine innodb;
insert into t1 values (1, 1);
*/
bool error = false;
mem_heap_t* heap = NULL;
dict_index_t* clust_index = NULL;