Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a1a4e8ee
Commit
a1a4e8ee
authored
Oct 05, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bb-10.2-ext' into 10.3
parents
ac57a30b
3e397715
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
15 additions
and
64 deletions
+15
-64
mysql-test/include/fail_start_mysqld.inc
mysql-test/include/fail_start_mysqld.inc
+0
-18
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+3
-3
mysql-test/r/tc_heuristic_recover.result
mysql-test/r/tc_heuristic_recover.result
+0
-1
mysql-test/suite/engines/funcs/r/sq_error.result
mysql-test/suite/engines/funcs/r/sq_error.result
+0
-8
mysql-test/suite/engines/funcs/t/sq_error.test
mysql-test/suite/engines/funcs/t/sq_error.test
+0
-8
mysql-test/suite/engines/iuds/r/update_delete_number.result
mysql-test/suite/engines/iuds/r/update_delete_number.result
+0
-1
mysql-test/suite/engines/iuds/t/update_delete_number.test
mysql-test/suite/engines/iuds/t/update_delete_number.test
+0
-1
mysql-test/t/tc_heuristic_recover.test
mysql-test/t/tc_heuristic_recover.test
+8
-16
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+2
-2
sql/log_event.cc
sql/log_event.cc
+1
-1
storage/connect/CMakeLists.txt
storage/connect/CMakeLists.txt
+1
-1
storage/innobase/row/row0import.cc
storage/innobase/row/row0import.cc
+0
-4
No files found.
mysql-test/include/fail_start_mysqld.inc
deleted
100644 → 0
View file @
ac57a30b
# ==== Usage ====
#
# [--let $restart_parameters= --innodb-force-recovery=0 --innodb-read-only=1]
# [--let $mysqld_stub_cmd= $MYSQLD_LAST_CMD]
# [--let $error_log= $MYSQLTEST_VARDIR/log/mysqld.1.err]
# --source include/fail_restart_mysqld.inc
# Evaluate the default of $error_log
if
(
!
$error_log
)
{
--
let
$error_log
=
$MYSQLTEST_VARDIR
/
log
/
mysqld
.
1.
err
}
--
error
1
--
exec
$mysqld_stub_cmd
$restart_parameters
>>
$error_log
2
>&
1
# As the server is stopped
--
disable_reconnect
mysql-test/mysql-test-run.pl
View file @
a1a4e8ee
...
...
@@ -5044,9 +5044,9 @@ sub mysqld_start ($$) {
}
#
"Dynamic" version of MYSQLD_CMD is reevaluated with each mysqld_start
.
#
Use it to restart the server at testing a failing server start (e.g
#
due to incompatible options)
.
#
Command line for mysqld started for *this particular test*
.
#
Differs from "generic" MYSQLD_CMD by including all command line
#
options from *.opt and *.combination files
.
$ENV
{'
MYSQLD_LAST_CMD
'}
=
"
$exe
@
$args
";
if
(
$opt_gdb
||
$opt_manual_gdb
)
...
...
mysql-test/r/tc_heuristic_recover.result
View file @
a1a4e8ee
call mtr.add_suppression("Can't init tc log");
call mtr.add_suppression("Found 1 prepared transactions!");
call mtr.add_suppression("Aborting");
set debug_sync='RESET';
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
SET GLOBAL innodb_flush_log_at_trx_commit=1;
FLUSH TABLES;
...
...
mysql-test/suite/engines/funcs/r/sq_error.result
View file @
a1a4e8ee
...
...
@@ -15,8 +15,6 @@ ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOM
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
ERROR 21000: Subquery returns more than 1 row
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
UPDATE t1 SET c1 = (SELECT MAX(c1) FROM t1);
ERROR HY000: Table 't1' is specified twice, both as a target for 'UPDATE' and as a separate source for data
DROP TABLE t1;
DROP TABLE t2;
CREATE TABLE t1 (c1 INT, c2 VARCHAR(100),c3 FLOAT);
...
...
@@ -34,8 +32,6 @@ ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOM
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
ERROR 21000: Subquery returns more than 1 row
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
UPDATE t1 SET c1 = (SELECT MAX(c1) FROM t1);
ERROR HY000: Table 't1' is specified twice, both as a target for 'UPDATE' and as a separate source for data
DROP TABLE t1;
DROP TABLE t2;
CREATE TABLE t1 (c1 INT, c2 BINARY(100),c3 FLOAT);
...
...
@@ -53,8 +49,6 @@ ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOM
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
ERROR 21000: Subquery returns more than 1 row
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
UPDATE t1 SET c1 = (SELECT MAX(c1) FROM t1);
ERROR HY000: Table 't1' is specified twice, both as a target for 'UPDATE' and as a separate source for data
DROP TABLE t1;
DROP TABLE t2;
CREATE TABLE t1 (c1 INT, c2 VARBINARY(100),c3 FLOAT);
...
...
@@ -72,7 +66,5 @@ ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOM
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
ERROR 21000: Subquery returns more than 1 row
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
UPDATE t1 SET c1 = (SELECT MAX(c1) FROM t1);
ERROR HY000: Table 't1' is specified twice, both as a target for 'UPDATE' and as a separate source for data
DROP TABLE t1;
DROP TABLE t2;
mysql-test/suite/engines/funcs/t/sq_error.test
View file @
a1a4e8ee
...
...
@@ -19,8 +19,6 @@ SELECT (SELECT c1, c2 FROM t2) FROM t1;
--
error
1242
SELECT
*
FROM
t1
WHERE
c1
=
(
SELECT
c1
FROM
t2
);
UPDATE
t1
SET
c2
=
(
SELECT
MAX
(
c1
)
FROM
t2
);
--
error
1093
UPDATE
t1
SET
c1
=
(
SELECT
MAX
(
c1
)
FROM
t1
);
DROP
TABLE
t1
;
DROP
TABLE
t2
;
CREATE
TABLE
t1
(
c1
INT
,
c2
VARCHAR
(
100
),
c3
FLOAT
);
...
...
@@ -38,8 +36,6 @@ SELECT (SELECT c1, c2 FROM t2) FROM t1;
--
error
1242
SELECT
*
FROM
t1
WHERE
c1
=
(
SELECT
c1
FROM
t2
);
UPDATE
t1
SET
c2
=
(
SELECT
MAX
(
c1
)
FROM
t2
);
--
error
1093
UPDATE
t1
SET
c1
=
(
SELECT
MAX
(
c1
)
FROM
t1
);
DROP
TABLE
t1
;
DROP
TABLE
t2
;
CREATE
TABLE
t1
(
c1
INT
,
c2
BINARY
(
100
),
c3
FLOAT
);
...
...
@@ -57,8 +53,6 @@ SELECT (SELECT c1, c2 FROM t2) FROM t1;
--
error
1242
SELECT
*
FROM
t1
WHERE
c1
=
(
SELECT
c1
FROM
t2
);
UPDATE
t1
SET
c2
=
(
SELECT
MAX
(
c1
)
FROM
t2
);
--
error
1093
UPDATE
t1
SET
c1
=
(
SELECT
MAX
(
c1
)
FROM
t1
);
DROP
TABLE
t1
;
DROP
TABLE
t2
;
CREATE
TABLE
t1
(
c1
INT
,
c2
VARBINARY
(
100
),
c3
FLOAT
);
...
...
@@ -76,8 +70,6 @@ SELECT (SELECT c1, c2 FROM t2) FROM t1;
--
error
1242
SELECT
*
FROM
t1
WHERE
c1
=
(
SELECT
c1
FROM
t2
);
UPDATE
t1
SET
c2
=
(
SELECT
MAX
(
c1
)
FROM
t2
);
--
error
1093
UPDATE
t1
SET
c1
=
(
SELECT
MAX
(
c1
)
FROM
t1
);
DROP
TABLE
t1
;
DROP
TABLE
t2
;
mysql-test/suite/engines/iuds/r/update_delete_number.result
View file @
a1a4e8ee
...
...
@@ -980,7 +980,6 @@ drop table mt1, mt2, mt3;
create table mt1 (col1 int);
create table mt2 (col1 int);
update mt1,mt2 set mt1.col1 = (select max(col1) from mt1) where mt1.col1 = mt2.col1;
ERROR HY000: Table 'mt1' is specified twice, both as a target for 'UPDATE' and as a separate source for data
delete mt1 from mt1,mt2 where mt1.col1 < (select max(col1) from mt1) and mt1.col1 = mt2.col1;
ERROR HY000: Table 'mt1' is specified twice, both as a target for 'DELETE' and as a separate source for data
drop table mt1,mt2;
...
...
mysql-test/suite/engines/iuds/t/update_delete_number.test
View file @
a1a4e8ee
...
...
@@ -495,7 +495,6 @@ drop table mt1, mt2, mt3;
# multi* unique updating table check
create
table
mt1
(
col1
int
);
create
table
mt2
(
col1
int
);
--
error
ER_UPDATE_TABLE_USED
update
mt1
,
mt2
set
mt1
.
col1
=
(
select
max
(
col1
)
from
mt1
)
where
mt1
.
col1
=
mt2
.
col1
;
--
error
ER_UPDATE_TABLE_USED
delete
mt1
from
mt1
,
mt2
where
mt1
.
col1
<
(
select
max
(
col1
)
from
mt1
)
and
mt1
.
col1
=
mt2
.
col1
;
...
...
mysql-test/t/tc_heuristic_recover.test
View file @
a1a4e8ee
...
...
@@ -9,7 +9,7 @@
# All this proves no crashes and effective rollback of the transaction.
#
--
source
include
/
have_innodb
.
inc
# The test logic
s
really requires --log-bin.
# The test logic really requires --log-bin.
--
source
include
/
have_binlog_format_mixed
.
inc
--
source
include
/
have_debug_sync
.
inc
--
source
include
/
not_embedded
.
inc
...
...
@@ -22,14 +22,7 @@ call mtr.add_suppression("Aborting");
#
# The "restart" expect-file facility can't be engaged because the server
# having conflicting options may not succeed to boot up.
# Also notice $MYSQLD_CMD is too "static" being unaware of the actual options
# of the last (before shutdown or kill) server run.
# That's why $MYSQLD_LAST_CMD that allows for the server new start
# with more options appended to a stub set which is settled at this very point.
--
let
$mysqld_stub_cmd
=
$MYSQLD_LAST_CMD
--
let
$error_log
=
$MYSQLTEST_VARDIR
/
log
/
mysqld
.
1.
err
--
let
SEARCH_FILE
=
$error_log
set
debug_sync
=
'RESET'
;
--
let
SEARCH_FILE
=
$MYSQLTEST_VARDIR
/
log
/
mysqld
.
1.
err
CREATE
TABLE
t1
(
i
INT
)
ENGINE
=
InnoDB
;
SET
GLOBAL
innodb_flush_log_at_trx_commit
=
1
;
...
...
@@ -55,8 +48,8 @@ SELECT * FROM t1;
# TODO: MDEV-12700 Allow innodb_read_only startup without prior slow shutdown.
--
source
include
/
kill_mysqld
.
inc
--
let
$restart_parameters
=
--
innodb
-
force
-
recovery
=
4
--
source
include
/
fail_start_mysqld
.
inc
--
error
1
--
exec
$MYSQLD_LAST_CMD
--
log
-
bin
=
master
-
bin
--
binlog
-
format
=
mixed
--
core
-
file
--
loose
-
debug
-
sync
-
timeout
=
300
--
innodb
-
force
-
recovery
=
4
--
let
SEARCH_PATTERN
=
was
in
the
XA
prepared
state
--
source
include
/
search_pattern_in_file
.
inc
...
...
@@ -65,8 +58,8 @@ SELECT * FROM t1;
--
let
SEARCH_PATTERN
=
\\
[
ERROR
\\
]
Can
\\
't init tc log
--source include/search_pattern_in_file.inc
--
let $restart_parameters= --innodb-force-recovery=4 --tc-heuristic-recover=COMMIT
--
source include/fail_start_mysqld.inc
--
error 1
--
exec $MYSQLD_LAST_CMD --log-bin=master-bin --binlog-format=mixed --core-file --loose-debug-sync-timeout=300 --innodb-force-recovery=4 --tc-heuristic-recover=COMMIT
--let SEARCH_PATTERN= was in the XA prepared state
--source include/search_pattern_in_file.inc
--let SEARCH_PATTERN= Found 1 prepared transactions!
...
...
@@ -76,8 +69,8 @@ SELECT * FROM t1;
--
let
SEARCH_PATTERN
=
Please
restart
mysqld
without
--
tc
-
heuristic
-
recover
--
source
include
/
search_pattern_in_file
.
inc
--
let
$restart_parameters
=
--
tc
-
heuristic
-
recover
=
ROLLBACK
--
source
include
/
fail_start_mysqld
.
inc
--
error
1
--
exec
$MYSQLD_LAST_CMD
--
log
-
bin
=
master
-
bin
--
binlog
-
format
=
mixed
--
core
-
file
--
loose
-
debug
-
sync
-
timeout
=
300
--
tc
-
heuristic
-
recover
=
ROLLBACK
--
let
SEARCH_PATTERN
=
was
in
the
XA
prepared
state
--
source
include
/
search_pattern_in_file
.
inc
...
...
@@ -88,7 +81,6 @@ SELECT * FROM t1;
--
let
SEARCH_PATTERN
=
Please
restart
mysqld
without
--
tc
-
heuristic
-
recover
--
source
include
/
search_pattern_in_file
.
inc
--
let
$restart_parameters
=
--
source
include
/
start_mysqld
.
inc
--
let
SEARCH_PATTERN
=
was
in
the
XA
prepared
state
...
...
scripts/mysqld_safe.sh
View file @
a1a4e8ee
...
...
@@ -245,7 +245,7 @@ wsrep_recover_position() {
local
euid
=
$(
id
-u
)
local
ret
=
0
local
wr_logfile
=
$(
mktemp
wsrep_recovery.XXXXXX
)
local
wr_logfile
=
$(
mktemp
/tmp/
wsrep_recovery.XXXXXX
)
# safety checks
if
[
-z
$wr_logfile
]
;
then
...
...
@@ -267,7 +267,7 @@ wsrep_recover_position() {
log_notice
"WSREP: Running position recovery with
$wr_options
"
eval
_log_error
"
$mysqld_cmd
--wsrep_recover
$wr_options
2>
$wr_logfile
"
eval
"
$mysqld_cmd
--wsrep_recover
$wr_options
2>
$wr_logfile
"
local
rp
=
"
$(
grep
'WSREP: Recovered position:'
$wr_logfile
)
"
if
[
-z
"
$rp
"
]
;
then
...
...
sql/log_event.cc
View file @
a1a4e8ee
...
...
@@ -7672,7 +7672,7 @@ Gtid_log_event::print(FILE *file, PRINT_EVENT_INFO *print_event_info)
char
buf
[
21
];
char
buf2
[
21
];
if
(
!
print_event_info
->
short_form
&
!
is_flashback
)
if
(
!
print_event_info
->
short_form
&
&
!
is_flashback
)
{
print_header
(
&
cache
,
print_event_info
,
FALSE
);
longlong10_to_str
(
seq_no
,
buf
,
10
);
...
...
storage/connect/CMakeLists.txt
View file @
a1a4e8ee
...
...
@@ -247,7 +247,7 @@ ENDIF(CONNECT_WITH_ODBC)
#
# JDBC with MongoDB Java Driver included but disabled
#
#
OPTION(CONNECT_WITH_MONGO "Compile CONNECT storage engine with MONGO support" ON)
OPTION
(
CONNECT_WITH_MONGO
"Compile CONNECT storage engine with MONGO support"
ON
)
OPTION
(
CONNECT_WITH_JDBC
"Compile CONNECT storage engine with JDBC support"
ON
)
IF
(
CONNECT_WITH_JDBC
)
...
...
storage/innobase/row/row0import.cc
View file @
a1a4e8ee
...
...
@@ -3594,10 +3594,6 @@ row_import_for_mysql(
DBUG_EXECUTE_IF
(
"ib_import_cluster_root_adjust_failure"
,
err
=
DB_CORRUPTION
;);
if
(
err
!=
DB_SUCCESS
)
{
return
(
row_import_error
(
prebuilt
,
trx
,
err
));
}
if
(
err
!=
DB_SUCCESS
)
{
return
(
row_import_error
(
prebuilt
,
trx
,
err
));
}
else
if
(
cfg
.
requires_purge
(
index
->
name
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment