mariadb/storage
mariadb-DebarunBanerjee 66bb229e91 MDEV-18288 Transportable Tablespaces leave AUTO_INCREMENT in mismatched state, causing INSERT errors in newly imported tables when .cfg is not used.
During import, if cfg file is not specified, we don't update the autoinc
field in innodb dictionary object dict_table_t. The next insert tries to
insert from the starting position of auto increment and fails.

It can be observed that the issue is resolved once server is restarted
as the persistent value is read correctly from PAGE_ROOT_AUTO_INC from
index root page. The patch fixes the issue by reading the the auto
increment value directly from PAGE_ROOT_AUTO_INC during import if cfg
file is not specified.

Test Fix:

1. import_bugs.test: Embedded mode warning has absolute path. Regular
expression replacement in test.

2. full_crc32_import.test: Table level auto increment mismatch after
import. It was using the auto increment data from the table prior to
discard and import which is not right. This value has cached auto
increment value higher than the actual inserted value and value stored
in PAGE_ROOT_AUTO_INC. Updated the result file and added validation for
checking the maximum value of auto increment column.
2024-02-06 13:45:30 +05:30
..
archive Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
blackhole Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
cassandra Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
columnstore MDEV-33290: Disable ColumnStore based on boost version 2024-01-23 15:20:25 +11:00
connect Merge branch '10.4' into 10.5 2024-01-10 18:01:46 +11:00
csv
example Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
federated Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
federatedx Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
heap Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
innobase MDEV-18288 Transportable Tablespaces leave AUTO_INCREMENT in mismatched state, causing INSERT errors in newly imported tables when .cfg is not used. 2024-02-06 13:45:30 +05:30
maria MDEV-33092 Undefined reference to concurrency on Solaris 2024-01-10 10:16:20 +01:00
mroonga Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
myisam Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
myisammrg MDEV-31083 ASAN use-after-poison in myrg_attach_children 2023-05-23 09:16:36 +03:00
oqgraph Merge 10.4 into 10.5 2023-09-11 11:29:31 +03:00
perfschema Revert "MDEV-29091: Correct event_name in PFS for wait caused by FOR UPDATE" 2023-10-14 11:03:00 +02:00
rocksdb Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
sequence Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
sphinx Merge branch '10.4' into 10.5 2024-01-10 18:01:46 +11:00
spider MDEV-27666 User variable not parsed as geometry variable in geometry function 2024-01-16 18:53:23 +04:00
test_sql_discovery Merge remote-tracking branch 'origin/10.4' into 10.5 2022-09-14 16:24:51 +04:00
tokudb Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00