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
125ce6f8
Commit
125ce6f8
authored
Oct 23, 2017
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-14102 restore --remove-original options for mariabackup
parent
2aa51f52
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
0 deletions
+46
-0
extra/mariabackup/xtrabackup.cc
extra/mariabackup/xtrabackup.cc
+5
-0
mysql-test/suite/mariabackup/compress_qpress.result
mysql-test/suite/mariabackup/compress_qpress.result
+15
-0
mysql-test/suite/mariabackup/compress_qpress.test
mysql-test/suite/mariabackup/compress_qpress.test
+24
-0
mysql-test/suite/mariabackup/suite.pm
mysql-test/suite/mariabackup/suite.pm
+2
-0
No files found.
extra/mariabackup/xtrabackup.cc
View file @
125ce6f8
...
...
@@ -837,6 +837,11 @@ struct my_option xb_client_options[] =
(
uchar
*
)
&
opt_incremental_history_uuid
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"remove-original"
,
OPT_REMOVE_ORIGINAL
,
"Remove .qp files after decompression."
,
(
uchar
*
)
&
opt_remove_original
,
(
uchar
*
)
&
opt_remove_original
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"ftwrl-wait-query-type"
,
OPT_LOCK_WAIT_QUERY_TYPE
,
"This option specifies which types of queries are allowed to complete "
"before innobackupex will issue the global lock. Default is all."
,
...
...
mysql-test/suite/mariabackup/compress_qpress.result
0 → 100644
View file @
125ce6f8
CREATE TABLE t(i INT) ENGINE INNODB;
INSERT INTO t VALUES(1);
# xtrabackup backup
INSERT INTO t VALUES(2);
# xtrabackup prepare
t.frm.qp
t.ibd.qp
# shutdown server
# remove datadir
# xtrabackup move back
# restart server
SELECT * FROM t;
i
1
DROP TABLE t;
mysql-test/suite/mariabackup/compress_qpress.test
0 → 100644
View file @
125ce6f8
CREATE
TABLE
t
(
i
INT
)
ENGINE
INNODB
;
INSERT
INTO
t
VALUES
(
1
);
echo
# xtrabackup backup;
let
$targetdir
=
$MYSQLTEST_VARDIR
/
tmp
/
backup
;
--
disable_result_log
exec
$XTRABACKUP
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
backup
--
compress
--
target
-
dir
=
$targetdir
;
--
enable_result_log
INSERT
INTO
t
VALUES
(
2
);
echo
# xtrabackup prepare;
--
disable_result_log
list_files
$targetdir
/
test
*.
qp
;
exec
$XTRABACKUP
--
decompress
--
remove
-
original
--
target
-
dir
=
$targetdir
;
list_files
$targetdir
/
test
*.
qp
;
exec
$XTRABACKUP
--
prepare
--
target
-
dir
=
$targetdir
;
--
source
include
/
restart_and_restore
.
inc
--
enable_result_log
SELECT
*
FROM
t
;
DROP
TABLE
t
;
rmdir
$targetdir
;
mysql-test/suite/mariabackup/suite.pm
View file @
125ce6f8
...
...
@@ -3,6 +3,7 @@ package My::Suite::MariaBackup;
@ISA
=
qw(My::Suite)
;
use
My::
Find
;
use
File::
Basename
;
use
File::
Which
;
use
strict
;
return
"
Not run for embedded server
"
if
$::opt_embedded_server
;
...
...
@@ -26,6 +27,7 @@ $ENV{INNOBACKUPEX}= "$mariabackup_exe --innobackupex";
sub
skip_combinations
{
my
%
skip
;
$skip
{'
include/have_file_key_management.inc
'}
=
'
needs file_key_management plugin
'
unless
$ENV
{
FILE_KEY_MANAGEMENT_SO
};
$skip
{'
compress_qpress.test
'}
=
'
needs qpress executable in PATH
'
unless
which
'
qpress
';
%
skip
;
}
...
...
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