Merge lp:~akopytov/percona-xtrabackup/bug884737-1.7 into lp:percona-xtrabackup/2.0

Proposed by Alexey Kopytov
Status: Merged
Merged at revision: 329
Proposed branch: lp:~akopytov/percona-xtrabackup/bug884737-1.7
Merge into: lp:percona-xtrabackup/2.0
Diff against target: 77 lines (+20/-6)
4 files modified
doc/source/innobackupex/how_innobackupex_works.rst (+1/-1)
doc/source/innobackupex/privileges.rst (+1/-1)
test/t/bug884737.sh (+14/-0)
xtrabackup.c (+4/-4)
To merge this branch: bzr merge lp:~akopytov/percona-xtrabackup/bug884737-1.7
Reviewer Review Type Date Requested Status
Stewart Smith (community) Approve
Review via email: mp+80964@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) wrote :
Revision history for this message
Stewart Smith (stewart) wrote :

(yes, this was actually approved. also in 1.6 merge req)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/source/innobackupex/how_innobackupex_works.rst'
2--- doc/source/innobackupex/how_innobackupex_works.rst 2011-10-21 17:47:31 +0000
3+++ doc/source/innobackupex/how_innobackupex_works.rst 2011-11-01 23:18:49 +0000
4@@ -59,7 +59,7 @@
5
6 Finally, the binary log position will be printed to ``STDERR`` and |innobackupex| will exit returning 0 if all went OK.
7
8-Note that the ``STDERR`` of |innobackupex| is not written in any file. You will have to redirect it to a file, e.g., ``innobackupex OPTIONS > backupout.log``.
9+Note that the ``STDERR`` of |innobackupex| is not written in any file. You will have to redirect it to a file, e.g., ``innobackupex OPTIONS 2> backupout.log``.
10
11 .. _copy-back-ibk:
12
13
14=== modified file 'doc/source/innobackupex/privileges.rst'
15--- doc/source/innobackupex/privileges.rst 2011-07-28 05:29:04 +0000
16+++ doc/source/innobackupex/privileges.rst 2011-11-01 23:18:49 +0000
17@@ -8,7 +8,7 @@
18
19 Permissions are those which permits a user to perform operations on the system, like reading, writing or executing on a certain directory or start/stop a system service. **They are set at a system level and only apply to system users**.
20
21-Whether |xtrabackup| or |innobackupex| is used, there are two actors involved: the user invoking the program - *a system user* - and the user performing action in the database server - *a database server*. Note that these are different users on different places, despite they may have the same username.
22+Whether |xtrabackup| or |innobackupex| is used, there are two actors involved: the user invoking the program - *a system user* - and the user performing action in the database server - *a database user*. Note that these are different users on different places, despite they may have the same username.
23
24 All the invocations of |innobackupex| and |xtrabackup| in this documentation assumes that the system user has the appropriate permissions and you are providing the relevant options for connecting the database server - besides the options for the action to be performed - and the database user has adequate privileges.
25
26
27=== added file 'test/t/bug884737.sh'
28--- test/t/bug884737.sh 1970-01-01 00:00:00 +0000
29+++ test/t/bug884737.sh 2011-11-01 23:18:49 +0000
30@@ -0,0 +1,14 @@
31+########################################################################
32+# Bug #884737: xtrabackup's --parallel option asserts / crashes with a
33+# value of -1
34+########################################################################
35+
36+. inc/common.sh
37+
38+init
39+run_mysqld
40+
41+# Check that --parallel=<negative value> doesn't blow up
42+vlog "Creating the backup directory: $topdir/backup"
43+mkdir -p $topdir/backup
44+innobackupex $topdir/backup --parallel=-1
45
46=== modified file 'xtrabackup.c'
47--- xtrabackup.c 2011-10-05 02:31:10 +0000
48+++ xtrabackup.c 2011-11-01 23:18:49 +0000
49@@ -708,7 +708,7 @@
50
51 ibool xtrabackup_logfile_is_renamed = FALSE;
52
53-uint parallel;
54+int parallel;
55
56 /* === metadata of backup === */
57 #define XTRABACKUP_METADATA_FILENAME "xtrabackup_checkpoints"
58@@ -1043,8 +1043,8 @@
59 {"parallel", OPT_XTRA_PARALLEL,
60 "Number of threads to use for parallel datafiles transfer. Does not have "
61 "any effect in the stream mode. The default value is 1.",
62- (G_PTR*) &parallel, (G_PTR*) &parallel, 0, GET_UINT, REQUIRED_ARG,
63- 1, 1, UINT_MAX, 0, 0, 0},
64+ (G_PTR*) &parallel, (G_PTR*) &parallel, 0, GET_INT, REQUIRED_ARG,
65+ 1, 1, INT_MAX, 0, 0, 0},
66
67 {"innodb_adaptive_hash_index", OPT_INNODB_ADAPTIVE_HASH_INDEX,
68 "Enable InnoDB adaptive hash index (enabled by default). "
69@@ -4107,7 +4107,7 @@
70 count = parallel;
71 count_mutex = OS_MUTEX_CREATE();
72
73- for (i = 0; i < parallel; i++) {
74+ for (i = 0; i < (uint) parallel; i++) {
75 data_threads[i].it = it;
76 data_threads[i].num = i+1;
77 data_threads[i].count = &count;

Subscribers

People subscribed via source and target branches