mirror of
https://github.com/MariaDB/server.git
synced 2025-06-03 07:02:23 +03:00
This is based on commit 20ae4816bba712a3faa0110c973e197d92f43b42 with some adjustments for MDEV-12353. row_ins_sec_index_entry_low(): If a separate mini-transaction is needed to adjust the minimum bounding rectangle (MBR) in the parent page, we must disable redo logging if the table is a temporary table. For temporary tables, no log is supposed to be written, because the temporary tablespace will be reinitialized on server restart. rtr_update_mbr_field(), rtr_merge_and_update_mbr(): Changed the return type to void and removed unreachable code. In older versions, these used to return a different value for temporary tables. page_id_t: Add constexpr to most member functions. mtr_t::log_write(): Catch log writes to invalid tablespaces so that the test case would crash without the fix to row_ins_sec_index_entry_low().
15 lines
487 B
Plaintext
15 lines
487 B
Plaintext
#
|
|
# MDEV-27417 Spatial index tries to update
|
|
# change buffer bookkeeping page
|
|
#
|
|
CREATE TEMPORARY TABLE t1 (c POINT NOT NULL, SPATIAL(c)) ENGINE=InnoDB;
|
|
INSERT INTO t1 SELECT PointFromText('POINT(0 0)') FROM seq_1_to_366;
|
|
DROP TABLE t1;
|
|
#
|
|
# MDEV-28478 Assertion mtr->get_log_mode() == MTR_LOG_NO_REDO
|
|
#
|
|
CREATE TEMPORARY TABLE t1 (c POINT NOT NULL,SPATIAL (c)) ENGINE=InnoDB;
|
|
INSERT INTO t1 SELECT POINT(0,0) FROM seq_1_to_366;
|
|
INSERT INTO t1 VALUES (POINT(1e-270,1e-130));
|
|
DROP TABLE t1;
|