Commit b3a628c7 authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.5 into 10.6

parents bb511def 89a5a8d2
...@@ -20,8 +20,6 @@ a RIGHT(b,20) ...@@ -20,8 +20,6 @@ a RIGHT(b,20)
2 bbbbbbbbbbbbbbbbbbbb 2 bbbbbbbbbbbbbbbbbbbb
connection default; connection default;
SET DEBUG='+d,row_ins_extern_checkpoint'; SET DEBUG='+d,row_ins_extern_checkpoint';
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
SET DEBUG_SYNC='before_row_ins_extern_latch SIGNAL rec_not_blob WAIT_FOR crash'; SET DEBUG_SYNC='before_row_ins_extern_latch SIGNAL rec_not_blob WAIT_FOR crash';
ROLLBACK; ROLLBACK;
BEGIN; BEGIN;
...@@ -88,8 +86,6 @@ BEGIN; ...@@ -88,8 +86,6 @@ BEGIN;
INSERT INTO t2 VALUES (347); INSERT INTO t2 VALUES (347);
connection default; connection default;
SET DEBUG='+d,row_upd_extern_checkpoint'; SET DEBUG='+d,row_upd_extern_checkpoint';
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
SET DEBUG_SYNC='before_row_upd_extern SIGNAL have_latch WAIT_FOR crash'; SET DEBUG_SYNC='before_row_upd_extern SIGNAL have_latch WAIT_FOR crash';
UPDATE t3 SET c=REPEAT('i',3000) WHERE a=2; UPDATE t3 SET c=REPEAT('i',3000) WHERE a=2;
connection con2; connection con2;
...@@ -126,8 +122,6 @@ BEGIN; ...@@ -126,8 +122,6 @@ BEGIN;
INSERT INTO t2 VALUES (33101); INSERT INTO t2 VALUES (33101);
connection default; connection default;
SET DEBUG='+d,row_upd_extern_checkpoint'; SET DEBUG='+d,row_upd_extern_checkpoint';
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
SET DEBUG_SYNC='after_row_upd_extern SIGNAL have_latch WAIT_FOR crash'; SET DEBUG_SYNC='after_row_upd_extern SIGNAL have_latch WAIT_FOR crash';
UPDATE t3 SET c=REPEAT('j',3000) WHERE a=2; UPDATE t3 SET c=REPEAT('j',3000) WHERE a=2;
connection con2; connection con2;
......
...@@ -92,8 +92,6 @@ ALTER TABLE t1 FORCE, ADD COLUMN k4 int; ...@@ -92,8 +92,6 @@ ALTER TABLE t1 FORCE, ADD COLUMN k4 int;
connection default; connection default;
SET DEBUG_SYNC= 'now WAIT_FOR opened'; SET DEBUG_SYNC= 'now WAIT_FOR opened';
SET debug = '+d,row_log_tmpfile_fail'; SET debug = '+d,row_log_tmpfile_fail';
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
INSERT INTO t1 select NULL,'aaa','bbb' from t480; INSERT INTO t1 select NULL,'aaa','bbb' from t480;
INSERT INTO t1 select NULL,'aaaa','bbbb' from t480; INSERT INTO t1 select NULL,'aaaa','bbbb' from t480;
SET DEBUG_SYNC= 'now SIGNAL flushed'; SET DEBUG_SYNC= 'now SIGNAL flushed';
......
...@@ -38,16 +38,10 @@ SET DEBUG_DBUG = '+d,innodb_OOM_prepare_inplace_alter'; ...@@ -38,16 +38,10 @@ SET DEBUG_DBUG = '+d,innodb_OOM_prepare_inplace_alter';
ALTER TABLE t1 ROW_FORMAT=REDUNDANT, ALGORITHM=INPLACE, LOCK=NONE; ALTER TABLE t1 ROW_FORMAT=REDUNDANT, ALGORITHM=INPLACE, LOCK=NONE;
ERROR HY000: Out of memory. ERROR HY000: Out of memory.
SET SESSION DEBUG = @saved_debug_dbug; SET SESSION DEBUG = @saved_debug_dbug;
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
SET SESSION DEBUG = '+d,innodb_OOM_inplace_alter'; SET SESSION DEBUG = '+d,innodb_OOM_inplace_alter';
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
ALTER TABLE t1 ROW_FORMAT=REDUNDANT, ALGORITHM=INPLACE, LOCK=NONE; ALTER TABLE t1 ROW_FORMAT=REDUNDANT, ALGORITHM=INPLACE, LOCK=NONE;
ERROR HY000: Out of memory. ERROR HY000: Out of memory.
SET SESSION DEBUG = @saved_debug_dbug; SET SESSION DEBUG = @saved_debug_dbug;
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
ALTER TABLE t1 ROW_FORMAT=REDUNDANT, ALGORITHM=INPLACE, LOCK=NONE; ALTER TABLE t1 ROW_FORMAT=REDUNDANT, ALGORITHM=INPLACE, LOCK=NONE;
connection default; connection default;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
......
...@@ -16,8 +16,6 @@ SET @save_dbug = @@debug_dbug; ...@@ -16,8 +16,6 @@ SET @save_dbug = @@debug_dbug;
SET DEBUG_DBUG = '+d,do_page_reorganize,do_lock_reverse_page_reorganize'; SET DEBUG_DBUG = '+d,do_page_reorganize,do_lock_reverse_page_reorganize';
insert into t1(f2) values (repeat('+', 100)); insert into t1(f2) values (repeat('+', 100));
SET DEBUG = @save_dbug; SET DEBUG = @save_dbug;
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
commit; commit;
connection con1; connection con1;
f1 f1
......
...@@ -20,8 +20,6 @@ END// ...@@ -20,8 +20,6 @@ END//
CALL populate_t1; CALL populate_t1;
SET autocommit=1; SET autocommit=1;
SET SESSION debug="+d,fts_instrument_result_cache_limit"; SET SESSION debug="+d,fts_instrument_result_cache_limit";
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
ALTER TABLE t1 ADD FULLTEXT INDEX `text_content_idx` (`text_content`); ALTER TABLE t1 ADD FULLTEXT INDEX `text_content_idx` (`text_content`);
SELECT FTS_DOC_ID, text_content SELECT FTS_DOC_ID, text_content
FROM t1 FROM t1
......
create table t1 (i int, g geometry not null, spatial index (g))engine=innodb; create table t1 (i int, g geometry not null, spatial index (g))engine=innodb;
SET SESSION debug="+d,rtree_test_check_count"; SET SESSION debug="+d,rtree_test_check_count";
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
insert into t1 values (1, POINT(1,1)); insert into t1 values (1, POINT(1,1));
insert into t1 values (1, POINT(1.5,1.5)); insert into t1 values (1, POINT(1.5,1.5));
insert into t1 values (1, POINT(3,3)); insert into t1 values (1, POINT(3,3));
......
...@@ -408,8 +408,6 @@ update t1 set a=point(5,5), b=point(5,5), c=5 where i < 3; ...@@ -408,8 +408,6 @@ update t1 set a=point(5,5), b=point(5,5), c=5 where i < 3;
ERROR 23000: Duplicate entry '5' for key 'c' ERROR 23000: Duplicate entry '5' for key 'c'
rollback; rollback;
set session debug="+d,row_mysql_crash_if_error"; set session debug="+d,row_mysql_crash_if_error";
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
update t1 set a=point(5,5), b=point(5,5), c=5 where i < 3; update t1 set a=point(5,5), b=point(5,5), c=5 where i < 3;
ERROR HY000: Lost connection to server during query ERROR HY000: Lost connection to server during query
insert into t1 values(5, point(5,5), point(5,5), 5); insert into t1 values(5, point(5,5), point(5,5), 5);
......
...@@ -44,8 +44,6 @@ count(*) ...@@ -44,8 +44,6 @@ count(*)
0 0
SET @saved_dbug = @@SESSION.debug_dbug; SET @saved_dbug = @@SESSION.debug_dbug;
SET DEBUG='+d,page_copy_rec_list_start_compress_fail'; SET DEBUG='+d,page_copy_rec_list_start_compress_fail';
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
delete from t1; delete from t1;
select count(*) from t1 where MBRWithin(t1.c2, @g1); select count(*) from t1 where MBRWithin(t1.c2, @g1);
count(*) count(*)
......
...@@ -31,7 +31,5 @@ COUNT(*) ...@@ -31,7 +31,5 @@ COUNT(*)
0 0
ALTER TABLE t1 DROP INDEX idx, ADD SPATIAL INDEX idx3(c2); ALTER TABLE t1 DROP INDEX idx, ADD SPATIAL INDEX idx3(c2);
SET SESSION debug="+d,row_merge_instrument_log_check_flush"; SET SESSION debug="+d,row_merge_instrument_log_check_flush";
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
ALTER TABLE t1 DROP INDEX idx3, ADD SPATIAL INDEX idx4(c2), ADD SPATIAL INDEX idx5(c3); ALTER TABLE t1 DROP INDEX idx3, ADD SPATIAL INDEX idx4(c2), ADD SPATIAL INDEX idx5(c3);
DROP TABLE t1; DROP TABLE t1;
...@@ -270,16 +270,12 @@ Variable_name Value ...@@ -270,16 +270,12 @@ Variable_name Value
Rpl_semi_sync_master_clients 1 Rpl_semi_sync_master_clients 1
# Test failure of select error . # Test failure of select error .
SET GLOBAL debug = 'd,rpl_semisync_simulate_select_error'; SET GLOBAL debug = 'd,rpl_semisync_simulate_select_error';
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
INSERT INTO t1 VALUES(3); INSERT INTO t1 VALUES(3);
connection slave; connection slave;
connection con1; connection con1;
# Test failure of pthread_create # Test failure of pthread_create
SET GLOBAL rpl_semi_sync_master_enabled = 0; SET GLOBAL rpl_semi_sync_master_enabled = 0;
SET GLOBAL debug = 'd,rpl_semisync_simulate_create_thread_failure'; SET GLOBAL debug = 'd,rpl_semisync_simulate_create_thread_failure';
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
SET GLOBAL rpl_semi_sync_master_enabled= ON; SET GLOBAL rpl_semi_sync_master_enabled= ON;
# Test failure of pthread_join # Test failure of pthread_join
SET GLOBAL rpl_semi_sync_master_enabled= OFF; SET GLOBAL rpl_semi_sync_master_enabled= OFF;
...@@ -287,8 +283,6 @@ SET GLOBAL rpl_semi_sync_master_enabled= OFF; ...@@ -287,8 +283,6 @@ SET GLOBAL rpl_semi_sync_master_enabled= OFF;
# Failure on registering semisync slave # Failure on registering semisync slave
# #
SET GLOBAL debug= 'd,rpl_semisync_simulate_add_slave_failure'; SET GLOBAL debug= 'd,rpl_semisync_simulate_add_slave_failure';
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
SET GLOBAL rpl_semi_sync_master_enabled= ON; SET GLOBAL rpl_semi_sync_master_enabled= ON;
connection slave; connection slave;
STOP SLAVE IO_THREAD; STOP SLAVE IO_THREAD;
...@@ -297,8 +291,6 @@ START SLAVE IO_THREAD; ...@@ -297,8 +291,6 @@ START SLAVE IO_THREAD;
include/wait_for_slave_io_to_start.inc include/wait_for_slave_io_to_start.inc
connection con1; connection con1;
SET GLOBAL debug=''; SET GLOBAL debug='';
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
connection slave; connection slave;
START SLAVE IO_THREAD; START SLAVE IO_THREAD;
include/wait_for_slave_io_to_start.inc include/wait_for_slave_io_to_start.inc
......
set session debug="L"; set session debug="L";
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
select @@global.debug="1"; select @@global.debug="1";
@@global.debug="1" @@global.debug="1"
0 0
......
...@@ -38,7 +38,7 @@ GLOBAL_VALUE_ORIGIN COMPILE-TIME ...@@ -38,7 +38,7 @@ GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE DEFAULT_VALUE
VARIABLE_SCOPE SESSION VARIABLE_SCOPE SESSION
VARIABLE_TYPE VARCHAR VARIABLE_TYPE VARCHAR
VARIABLE_COMMENT Built-in DBUG debugger VARIABLE_COMMENT Built-in DBUG debugger. Alias for --debug
NUMERIC_MIN_VALUE NULL NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL NUMERIC_BLOCK_SIZE NULL
......
...@@ -226,11 +226,11 @@ sub setpwd ...@@ -226,11 +226,11 @@ sub setpwd
{ {
$pass = "PASSWORD(". $dbh->quote($pass) . ")"; $pass = "PASSWORD(". $dbh->quote($pass) . ")";
} }
my $uh= "$user@$host"; my $uh= $user."@".$host;
my $sth = $dbh->prepare("set password for $uh =$pass") || die $dbh->errstr; my $sth = $dbh->prepare("set password for $uh =$pass") || die $dbh->errstr;
$sth->execute || die $dbh->errstr; $sth->execute || die $dbh->errstr;
$sth->finish; $sth->finish;
print "The password is set for user $user.\n\n"; print "The password is set for user $uh.\n\n";
} }
......
...@@ -1003,11 +1003,10 @@ static Sys_var_charptr_fscs Sys_datadir( ...@@ -1003,11 +1003,10 @@ static Sys_var_charptr_fscs Sys_datadir(
static Sys_var_dbug Sys_dbug( static Sys_var_dbug Sys_dbug(
"debug", "Built-in DBUG debugger", sys_var::SESSION, "debug", "Built-in DBUG debugger", sys_var::SESSION,
CMD_LINE(OPT_ARG, '#'), DEFAULT(""), NO_MUTEX_GUARD, NOT_IN_BINLOG, CMD_LINE(OPT_ARG, '#'), DEFAULT(""), NO_MUTEX_GUARD, NOT_IN_BINLOG,
ON_CHECK(check_has_super), ON_UPDATE(0), ON_CHECK(check_has_super));
DEPRECATED("'@@debug_dbug'")); // since 5.5.37
static Sys_var_dbug Sys_debug_dbug( static Sys_var_dbug Sys_debug_dbug(
"debug_dbug", "Built-in DBUG debugger", sys_var::SESSION, "debug_dbug", "Built-in DBUG debugger. Alias for --debug", sys_var::SESSION,
CMD_LINE(OPT_ARG, '#'), DEFAULT(""), NO_MUTEX_GUARD, NOT_IN_BINLOG, CMD_LINE(OPT_ARG, '#'), DEFAULT(""), NO_MUTEX_GUARD, NOT_IN_BINLOG,
ON_CHECK(check_has_super)); ON_CHECK(check_has_super));
#endif #endif
......
...@@ -15720,15 +15720,17 @@ ha_innobase::extra( ...@@ -15720,15 +15720,17 @@ ha_innobase::extra(
{ {
/* Warning: since it is not sure that MariaDB calls external_lock() /* Warning: since it is not sure that MariaDB calls external_lock()
before calling this function, m_prebuilt->trx can be obsolete! */ before calling this function, m_prebuilt->trx can be obsolete! */
trx_t* trx = check_trx_exists(ha_thd()); trx_t* trx;
switch (operation) { switch (operation) {
case HA_EXTRA_FLUSH: case HA_EXTRA_FLUSH:
(void)check_trx_exists(ha_thd());
if (m_prebuilt->blob_heap) { if (m_prebuilt->blob_heap) {
row_mysql_prebuilt_free_blob_heap(m_prebuilt); row_mysql_prebuilt_free_blob_heap(m_prebuilt);
} }
break; break;
case HA_EXTRA_RESET_STATE: case HA_EXTRA_RESET_STATE:
trx = check_trx_exists(ha_thd());
reset_template(); reset_template();
trx->duplicates = 0; trx->duplicates = 0;
stmt_boundary: stmt_boundary:
...@@ -15736,18 +15738,23 @@ ha_innobase::extra( ...@@ -15736,18 +15738,23 @@ ha_innobase::extra(
trx->bulk_insert = false; trx->bulk_insert = false;
break; break;
case HA_EXTRA_NO_KEYREAD: case HA_EXTRA_NO_KEYREAD:
(void)check_trx_exists(ha_thd());
m_prebuilt->read_just_key = 0; m_prebuilt->read_just_key = 0;
break; break;
case HA_EXTRA_KEYREAD: case HA_EXTRA_KEYREAD:
(void)check_trx_exists(ha_thd());
m_prebuilt->read_just_key = 1; m_prebuilt->read_just_key = 1;
break; break;
case HA_EXTRA_KEYREAD_PRESERVE_FIELDS: case HA_EXTRA_KEYREAD_PRESERVE_FIELDS:
(void)check_trx_exists(ha_thd());
m_prebuilt->keep_other_fields_on_keyread = 1; m_prebuilt->keep_other_fields_on_keyread = 1;
break; break;
case HA_EXTRA_INSERT_WITH_UPDATE: case HA_EXTRA_INSERT_WITH_UPDATE:
trx = check_trx_exists(ha_thd());
trx->duplicates |= TRX_DUP_IGNORE; trx->duplicates |= TRX_DUP_IGNORE;
goto stmt_boundary; goto stmt_boundary;
case HA_EXTRA_NO_IGNORE_DUP_KEY: case HA_EXTRA_NO_IGNORE_DUP_KEY:
trx = check_trx_exists(ha_thd());
trx->duplicates &= ~TRX_DUP_IGNORE; trx->duplicates &= ~TRX_DUP_IGNORE;
if (trx->is_bulk_insert()) { if (trx->is_bulk_insert()) {
/* Allow a subsequent INSERT into an empty table /* Allow a subsequent INSERT into an empty table
...@@ -15756,9 +15763,11 @@ ha_innobase::extra( ...@@ -15756,9 +15763,11 @@ ha_innobase::extra(
} }
goto stmt_boundary; goto stmt_boundary;
case HA_EXTRA_WRITE_CAN_REPLACE: case HA_EXTRA_WRITE_CAN_REPLACE:
trx = check_trx_exists(ha_thd());
trx->duplicates |= TRX_DUP_REPLACE; trx->duplicates |= TRX_DUP_REPLACE;
goto stmt_boundary; goto stmt_boundary;
case HA_EXTRA_WRITE_CANNOT_REPLACE: case HA_EXTRA_WRITE_CANNOT_REPLACE:
trx = check_trx_exists(ha_thd());
trx->duplicates &= ~TRX_DUP_REPLACE; trx->duplicates &= ~TRX_DUP_REPLACE;
if (trx->is_bulk_insert()) { if (trx->is_bulk_insert()) {
/* Allow a subsequent INSERT into an empty table /* Allow a subsequent INSERT into an empty table
...@@ -15767,6 +15776,7 @@ ha_innobase::extra( ...@@ -15767,6 +15776,7 @@ ha_innobase::extra(
} }
goto stmt_boundary; goto stmt_boundary;
case HA_EXTRA_BEGIN_ALTER_COPY: case HA_EXTRA_BEGIN_ALTER_COPY:
trx = check_trx_exists(ha_thd());
m_prebuilt->table->skip_alter_undo = 1; m_prebuilt->table->skip_alter_undo = 1;
if (m_prebuilt->table->is_temporary() if (m_prebuilt->table->is_temporary()
|| !m_prebuilt->table->versioned_by_id()) { || !m_prebuilt->table->versioned_by_id()) {
...@@ -15779,6 +15789,7 @@ ha_innobase::extra( ...@@ -15779,6 +15789,7 @@ ha_innobase::extra(
.first->second.set_versioned(0); .first->second.set_versioned(0);
break; break;
case HA_EXTRA_END_ALTER_COPY: case HA_EXTRA_END_ALTER_COPY:
trx = check_trx_exists(ha_thd());
m_prebuilt->table->skip_alter_undo = 0; m_prebuilt->table->skip_alter_undo = 0;
if (!m_prebuilt->table->is_temporary() if (!m_prebuilt->table->is_temporary()
&& !high_level_read_only) { && !high_level_read_only) {
......
...@@ -160,10 +160,16 @@ void mtr_t::commit() ...@@ -160,10 +160,16 @@ void mtr_t::commit()
{ {
ut_ad(m_log_mode == MTR_LOG_NO_REDO); ut_ad(m_log_mode == MTR_LOG_NO_REDO);
ut_ad(m_log.size() == 0); ut_ad(m_log.size() == 0);
m_commit_lsn= log_sys.get_lsn();
lsns= { m_commit_lsn, PAGE_FLUSH_NO };
if (UNIV_UNLIKELY(m_made_dirty)) /* This should be IMPORT TABLESPACE */ if (UNIV_UNLIKELY(m_made_dirty)) /* This should be IMPORT TABLESPACE */
{
mysql_mutex_lock(&log_sys.mutex);
m_commit_lsn= log_sys.get_lsn();
mysql_mutex_lock(&log_sys.flush_order_mutex); mysql_mutex_lock(&log_sys.flush_order_mutex);
mysql_mutex_unlock(&log_sys.mutex);
}
else
m_commit_lsn= log_sys.get_lsn();
lsns= { m_commit_lsn, PAGE_FLUSH_NO };
} }
if (m_freed_pages) if (m_freed_pages)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment