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
8dfd157b
Commit
8dfd157b
authored
Dec 19, 2015
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '5.5-galera' into 10.0-galera
parents
dad555a0
3f515a09
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
1 deletion
+65
-1
mysql-test/suite/galera/r/mdev_9290.result
mysql-test/suite/galera/r/mdev_9290.result
+14
-0
mysql-test/suite/galera/t/galera_var_dirty_reads.test
mysql-test/suite/galera/t/galera_var_dirty_reads.test
+16
-0
mysql-test/suite/galera/t/mdev_9290.test
mysql-test/suite/galera/t/mdev_9290.test
+24
-0
sql/mysqld.cc
sql/mysqld.cc
+11
-1
No files found.
mysql-test/suite/galera/r/mdev_9290.result
0 → 100644
View file @
8dfd157b
#
# MDEV-9290 : InnoDB: Assertion failure in file trx0sys.cc line 353
# InnoDB: Failing assertion: xid_seqno > trx_sys_cur_xid_seqno
#
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
START TRANSACTION;
INSERT INTO t1 VALUES (1);
INSERT INTO t1 VALUES (2);
COMMIT;
SELECT * FROM t1;
i
1
2
DROP TABLE t1;
mysql-test/suite/galera/t/galera_var_dirty_reads.test
View file @
8dfd157b
...
...
@@ -5,6 +5,14 @@
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
disable_query_log
# Save original auto_increment_offset values.
--
connection
node_1
let
$auto_increment_offset_node_1
=
`SELECT @@global.auto_increment_offset`
;
--
connection
node_2
let
$auto_increment_offset_node_2
=
`SELECT @@global.auto_increment_offset`
;
--
enable_query_log
--
connection
node_2
--
let
$wsrep_cluster_address_saved
=
`SELECT @@global.wsrep_cluster_address`
...
...
@@ -41,6 +49,14 @@ SELECT * FROM t1;
# Cleanup
DROP
TABLE
t1
;
--
disable_query_log
# Restore original auto_increment_offset values.
--
connection
node_1
--
eval
SET
@@
global
.
auto_increment_offset
=
$auto_increment_offset_node_1
;
--
connection
node_2
--
eval
SET
@@
global
.
auto_increment_offset
=
$auto_increment_offset_node_2
;
--
enable_query_log
--
source
include
/
galera_end
.
inc
--
echo
# End of test
mysql-test/suite/galera/t/mdev_9290.test
0 → 100644
View file @
8dfd157b
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
echo
#
--
echo
# MDEV-9290 : InnoDB: Assertion failure in file trx0sys.cc line 353
--
echo
# InnoDB: Failing assertion: xid_seqno > trx_sys_cur_xid_seqno
--
echo
#
--
connection
node_1
CREATE
TABLE
t1
(
i
INT
)
ENGINE
=
InnoDB
;
--
connection
node_2
# Note: a multi-statement transaction should always be the "first" one to execute
# on this node.
START
TRANSACTION
;
INSERT
INTO
t1
VALUES
(
1
);
INSERT
INTO
t1
VALUES
(
2
);
COMMIT
;
--
connection
node_1
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
--
source
include
/
galera_end
.
inc
sql/mysqld.cc
View file @
8dfd157b
...
...
@@ -5140,10 +5140,20 @@ static int init_server_components()
THD
*
current_thd_saved
=
current_thd
;
set_current_thd
(
tmp
);
/*
Also save/restore server_status and variables.option_bits and they
get altered during init_for_queries().
*/
unsigned
int
server_status_saved
=
tmp
->
server_status
;
ulonglong
option_bits_saved
=
tmp
->
variables
.
option_bits
;
tmp
->
init_for_queries
();
/* Restore current_thd. */
set_current_thd
(
current_thd_saved
);
tmp
->
server_status
=
server_status_saved
;
tmp
->
variables
.
option_bits
=
option_bits_saved
;
}
}
mysql_mutex_unlock
(
&
LOCK_thread_count
);
...
...
@@ -5511,7 +5521,7 @@ pthread_handler_t start_wsrep_THD(void *arg)
WSREP_ERROR
(
"Failed to create/initialize system thread"
);
/* Abort if its the first applier/rollbacker thread. */
if
(
wsrep_creating_startup_threads
<
2
)
if
(
wsrep_creating_startup_threads
==
1
)
unireg_abort
(
1
);
else
return
NULL
;
...
...
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