Skip to content

Commit 248dc12

Browse files
committed
Merge 10.1 into 10.2
2 parents f5ee7fb + 7372fe4 commit 248dc12

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

extra/mariabackup/xtrabackup.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5262,6 +5262,7 @@ xb_process_datadir(
52625262
path, NULL,
52635263
fileinfo.name, NULL))
52645264
{
5265+
os_file_closedir(dbdir);
52655266
return(FALSE);
52665267
}
52675268
}
@@ -5323,6 +5324,7 @@ xb_process_datadir(
53235324
dbinfo.name,
53245325
fileinfo.name, NULL))
53255326
{
5327+
os_file_closedir(dbdir);
53265328
return(FALSE);
53275329
}
53285330
}

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ galera_as_slave_preordered : wsrep-preordered feature not merged to MariaDB
2020
GAL-419 : MDEV-13549 Galera test failures
2121
galera_var_notify_cmd : MDEV-13549 Galera test failures
2222
galera_as_slave_replication_bundle : MDEV-13549 Galera test failures
23-
galera_gcache_recover : MDEV-13549 Galera test failures
24-
galera_gcache_recover_full_gcache : MDEV-13549 Galera test failures
25-
galera_gcache_recover_manytrx : MDEV-13549 Galera test failures
2623
galera_ssl_upgrade : MDEV-13549 Galera test failures
2724
galera.MW-329 : wsrep_local_replays not stable
2825
MW-416 : MDEV-13549 Galera test failures
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
22
INSERT INTO t1 VALUES (1);
33
SET SESSION wsrep_sync_wait = 0;
4+
connection node_2;
45
SET SESSION wsrep_sync_wait = 0;
56
Killing server ...
7+
connection node_1;
68
INSERT INTO t1 VALUES (2);
79
Killing server ...
10+
connection node_1;
811
Performing --wsrep-recover ...
912
Using --wsrep-start-position when starting mysqld ...
1013
INSERT INTO t1 VALUES (3);
14+
connection node_2;
1115
Performing --wsrep-recover ...
1216
Using --wsrep-start-position when starting mysqld ...
17+
connection node_1;
1318
include/diff_servers.inc [servers=1 2]
19+
connection node_1;
1420
CALL mtr.add_suppression("Skipped GCache ring buffer recovery");
1521
include/assert_grep.inc [async IST sender starting to serve]
22+
connection node_2;
1623
CALL mtr.add_suppression("Skipped GCache ring buffer recovery");
1724
include/assert_grep.inc [Recovering GCache ring buffer: found gapless sequence]
1825
DROP TABLE t1;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
SET SESSION wsrep_sync_wait = 0;
22
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY AUTO_INCREMENT, f2 LONGBLOB) ENGINE=InnoDB;
3+
connection node_2;
34
SET SESSION wsrep_sync_wait = 0;
45
Killing server ...
6+
connection node_1;
57
INSERT INTO t1 (f2) VALUES (REPEAT('x', 1024 * 1024 * 10));
68
INSERT INTO t1 (f2) VALUES (REPEAT('x', 1024 * 1024 * 10));
79
INSERT INTO t1 (f2) VALUES (REPEAT('x', 1024 * 1024 * 10));
810
INSERT INTO t1 (f2) VALUES (REPEAT('x', 1024 * 1024 * 10));
911
INSERT INTO t1 (f2) VALUES (REPEAT('x', 1024 * 1024 * 10));
1012
Killing server ...
13+
connection node_1;
1114
Performing --wsrep-recover ...
1215
Using --wsrep-start-position when starting mysqld ...
16+
connection node_2;
1317
Performing --wsrep-recover ...
1418
Using --wsrep-start-position when starting mysqld ...
19+
connection node_1;
1520
include/diff_servers.inc [servers=1 2]
21+
connection node_1;
1622
DROP TABLE t1;
1723
CALL mtr.add_suppression("Skipped GCache ring buffer recovery");
1824
include/assert_grep.inc [IST first seqno 2 not found from cache, falling back to SST]
25+
connection node_2;
1926
CALL mtr.add_suppression("Skipped GCache ring buffer recovery");

storage/innobase/trx/trx0trx.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,6 +2738,12 @@ trx_get_trx_by_xid_low(
27382738
&& trx_state_eq(trx, TRX_STATE_PREPARED)
27392739
&& xid->eq((XID*)trx->xid)) {
27402740

2741+
#ifdef WITH_WSREP
2742+
/* The commit of a prepared recovered Galera
2743+
transaction needs a valid trx->xid for
2744+
invoking trx_sys_update_wsrep_checkpoint(). */
2745+
if (wsrep_is_wsrep_xid(trx->xid)) break;
2746+
#endif
27412747
/* Invalidate the XID, so that subsequent calls
27422748
will not find it. */
27432749
trx->xid->null();

storage/xtradb/trx/trx0trx.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2578,6 +2578,12 @@ trx_get_trx_by_xid_low(
25782578
&& memcmp(xid->data, trx->xid.data,
25792579
xid->gtrid_length + xid->bqual_length) == 0) {
25802580

2581+
#ifdef WITH_WSREP
2582+
/* The commit of a prepared recovered Galera
2583+
transaction needs a valid trx->xid for
2584+
invoking trx_sys_update_wsrep_checkpoint(). */
2585+
if (wsrep_is_wsrep_xid(&trx->xid)) break;
2586+
#endif
25812587
/* Invalidate the XID, so that subsequent calls
25822588
will not find it. */
25832589
trx->xid.null();

0 commit comments

Comments
 (0)