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
761cf492
Commit
761cf492
authored
Nov 09, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.1 into 10.2
parents
62333983
d2ffafe0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
mysql-test/suite/mariabackup/incremental_backup.result
mysql-test/suite/mariabackup/incremental_backup.result
+11
-2
mysql-test/suite/mariabackup/incremental_backup.test
mysql-test/suite/mariabackup/incremental_backup.test
+11
-2
storage/xtradb/trx/trx0undo.cc
storage/xtradb/trx/trx0undo.cc
+1
-0
No files found.
mysql-test/suite/mariabackup/incremental_backup.result
View file @
761cf492
call mtr.add_suppression("InnoDB: New log files created");
CREATE TABLE t(i INT) ENGINE INNODB;
CREATE TABLE t(i INT PRIMARY KEY) ENGINE INNODB;
BEGIN;
INSERT INTO t VALUES(2);
connect con1,localhost,root,,;
SET GLOBAL innodb_flush_log_at_trx_commit = 1;
INSERT INTO t VALUES(1);
# Create full backup , modify table, then create incremental/differential backup
INSERT INTO t VALUES(2);
BEGIN;
INSERT INTO t VALUES(0);
DELETE FROM t WHERE i=0;
connection default;
COMMIT;
SELECT * FROM t;
i
1
2
# Prepare full backup, apply incremental one
disconnect con1;
# Restore and check results
# shutdown server
# remove datadir
...
...
mysql-test/suite/mariabackup/incremental_backup.test
View file @
761cf492
...
...
@@ -5,14 +5,22 @@ call mtr.add_suppression("InnoDB: New log files created");
let
$basedir
=
$MYSQLTEST_VARDIR
/
tmp
/
backup
;
let
$incremental_dir
=
$MYSQLTEST_VARDIR
/
tmp
/
backup_inc1
;
CREATE
TABLE
t
(
i
INT
)
ENGINE
INNODB
;
CREATE
TABLE
t
(
i
INT
PRIMARY
KEY
)
ENGINE
INNODB
;
BEGIN
;
INSERT
INTO
t
VALUES
(
2
);
connect
(
con1
,
localhost
,
root
,,);
SET
GLOBAL
innodb_flush_log_at_trx_commit
=
1
;
INSERT
INTO
t
VALUES
(
1
);
echo
# Create full backup , modify table, then create incremental/differential backup;
--
disable_result_log
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
--
target
-
dir
=
$basedir
;
--
enable_result_log
INSERT
INTO
t
VALUES
(
2
);
BEGIN
;
INSERT
INTO
t
VALUES
(
0
);
DELETE
FROM
t
WHERE
i
=
0
;
connection
default
;
COMMIT
;
SELECT
*
FROM
t
;
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
--
ftwrl
-
wait
-
timeout
=
5
--
ftwrl
-
wait
-
threshold
=
300
--
ftwrl
-
wait
-
query
-
type
=
all
--
target
-
dir
=
$incremental_dir
--
incremental
-
basedir
=
$basedir
;
...
...
@@ -21,6 +29,7 @@ echo # Prepare full backup, apply incremental one;
exec
$XTRABACKUP
--
prepare
--
target
-
dir
=
$basedir
;
exec
$XTRABACKUP
--
prepare
--
target
-
dir
=
$basedir
--
incremental
-
dir
=
$incremental_dir
;
disconnect
con1
;
echo
# Restore and check results;
let
$targetdir
=
$basedir
;
--
source
include
/
restart_and_restore
.
inc
...
...
storage/xtradb/trx/trx0undo.cc
View file @
761cf492
...
...
@@ -2025,6 +2025,7 @@ trx_undo_free_prepared(
/* lock_trx_release_locks() assigns
trx->is_recovered=false */
ut_a
(
srv_read_only_mode
||
srv_apply_log_only
||
srv_force_recovery
>=
SRV_FORCE_NO_TRX_UNDO
);
break
;
default:
...
...
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