Skip to content

Commit

Permalink
Merge 10.5 into 10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Nov 10, 2022
2 parents fef9d6e + 7ee612c commit da21f3f
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 28 deletions.
1 change: 1 addition & 0 deletions mysql-test/suite/binlog/r/binlog_empty_xa_prepared.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RESET MASTER;
CREATE TEMPORARY SEQUENCE seq_1;
XA START '3';
CREATE TEMPORARY TABLE tmp_1(c INT);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RESET MASTER;
#
# Verify that SET string values and character sets can be printed correctly
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RESET MASTER;
#
# Verify that SET string values and character sets can be printed correctly
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
RESET MASTER;
#
# Verify that SET string values and character sets can be printed correctly
#
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/binlog/t/binlog_empty_xa_prepared.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
--source include/have_binlog_format_mixed.inc
--source include/have_innodb.inc


RESET MASTER; # clear binlogs
# MDEV-22420 DDL on temporary object is prohibited when XA is in prepare state

# Temporary sequnce may not be created within a transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
--let $MYSQLD_DATADIR= `select @@datadir`
--let $binlog_file= $MYSQLD_DATADIR/master-bin.000001

RESET MASTER;
--echo #
--echo # Verify that SET string values and character sets can be printed correctly
--echo #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
--let $MYSQLD_DATADIR= `select @@datadir`
--let $binlog_file= $MYSQLD_DATADIR/master-bin.000001

RESET MASTER;
--echo #
--echo # Verify that SET string values and character sets can be printed correctly
--echo #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
--let $MYSQLD_DATADIR= `select @@datadir`
--let $binlog_file= $MYSQLD_DATADIR/master-bin.000001

RESET MASTER;
--echo #
--echo # Verify that SET string values and character sets can be printed correctly
--echo #
Expand Down
1 change: 1 addition & 0 deletions mysql-test/suite/maria/rollback.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
reset master;
call mtr.add_suppression("Table was marked as crashed");
call mtr.add_suppression("Checking table: .*");
create table t1 (a int primary key auto_increment, b int) engine=aria transactional= 1;
Expand Down
2 changes: 2 additions & 0 deletions mysql-test/suite/maria/rollback.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# no-protocol doesn't print warnings about repaired tables
--source include/no_protocol.inc

reset master; # clear binlogs

call mtr.add_suppression("Table was marked as crashed");
call mtr.add_suppression("Checking table: .*");

Expand Down
4 changes: 0 additions & 4 deletions storage/innobase/include/mtr0mtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,6 @@ struct mtr_t {
@param type object type
@return bool if lock released */
bool memo_release(const void *object, ulint type);
/** Release a page latch.
@param[in] ptr pointer to within a page frame
@param[in] type object type: MTR_MEMO_PAGE_X_FIX, ... */
void release_page(const void *ptr, mtr_memo_type_t type);

/** Note that the mini-transaction will modify data. */
void flag_modified() { m_modifications = true; }
Expand Down
23 changes: 0 additions & 23 deletions storage/innobase/mtr/mtr0mtr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -838,29 +838,6 @@ mtr_t::memo_release(const void* object, ulint type)
return(false);
}

/** Release a page latch.
@param[in] ptr pointer to within a page frame
@param[in] type object type: MTR_MEMO_PAGE_X_FIX, ... */
void
mtr_t::release_page(const void* ptr, mtr_memo_type_t type)
{
ut_ad(is_active());

/* We cannot release a page that has been written to in the
middle of a mini-transaction. */
ut_ad(!m_modifications || type != MTR_MEMO_PAGE_X_FIX);

Iterate<FindPage> iteration(FindPage(ptr, type));

if (!m_memo.for_each_block_in_reverse(iteration)) {
memo_slot_release(iteration.functor.get_slot());
return;
}

/* The page was not found! */
ut_ad(0);
}

static bool log_margin_warned;
static time_t log_margin_warn_time;
static bool log_close_warned;
Expand Down

0 comments on commit da21f3f

Please sign in to comment.