Merge lp:~akopytov/percona-xtrabackup/bug610614 into lp:percona-xtrabackup/1.6

Proposed by Alexey Kopytov
Status: Merged
Approved by: Stewart Smith
Approved revision: no longer in the source branch.
Merged at revision: 265
Proposed branch: lp:~akopytov/percona-xtrabackup/bug610614
Merge into: lp:percona-xtrabackup/1.6
Prerequisite: lp:~akopytov/percona-xtrabackup/more-test-suite-fixes
Diff against target: 168 lines (+34/-12)
9 files modified
Makefile (+1/-1)
VERSION (+1/-0)
test/t/xb_version.sh (+4/-0)
utils/build-binary.sh (+2/-3)
utils/build-dpkg.sh (+3/-3)
utils/build-rpm.sh (+3/-0)
utils/build.sh (+4/-1)
utils/xtrabackup.spec (+0/-2)
xtrabackup.c (+16/-2)
To merge this branch: bzr merge lp:~akopytov/percona-xtrabackup/bug610614
Reviewer Review Type Date Requested Status
Stewart Smith (community) Approve
Review via email: mp+64552@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Stewart Smith (stewart) wrote :
Revision history for this message
Stewart Smith (stewart) wrote :

param build shows that innodb55 targets are failing all tests (incorrect xtrabackup binary detection) - this is likely due to more-test-suite-fixes branch.

review: Needs Fixing
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Fixed innodb55 targets by merging from more-test-suite-fixes. http://jenkins.percona.com/view/Percona%20Xtrabackup/job/percona-xtrabackup-1.6-param/12/

Revision history for this message
Stewart Smith (stewart) wrote :

looks good - I'll merge.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2011-03-23 20:08:04 +0000
+++ Makefile 2011-06-15 06:05:55 +0000
@@ -11,7 +11,7 @@
11LIBS = -lpthread11LIBS = -lpthread
12DEFS = -DUNIV_LINUX -DMYSQL_SERVER12DEFS = -DUNIV_LINUX -DMYSQL_SERVER
1313
14CFLAGS += -O3 -g -pedantic -Wall -Wundef -Wshadow -fdiagnostics-show-option -fno-strict-aliasing -Wno-strict-aliasing -Wextra -Wformat -Wno-format-nonliteral -Wno-format-security -Wno-long-long -Wmissing-declarations -Wno-redundant-decls --std=gnu9914CFLAGS += -O3 -g -DXTRABACKUP_VERSION=\"$(XTRABACKUP_VERSION)\" -pedantic -Wall -Wundef -Wshadow -fdiagnostics-show-option -fno-strict-aliasing -Wno-strict-aliasing -Wextra -Wformat -Wno-format-nonliteral -Wno-format-security -Wno-long-long -Wmissing-declarations -Wno-redundant-decls --std=gnu99
1515
16TARGET=xtrabackup16TARGET=xtrabackup
17PREFIX=/usr17PREFIX=/usr
1818
=== added file 'VERSION'
--- VERSION 1970-01-01 00:00:00 +0000
+++ VERSION 2011-06-15 06:05:55 +0000
@@ -0,0 +1,1 @@
1XTRABACKUP_VERSION=1.6.2
02
=== added file 'test/t/xb_version.sh'
--- test/t/xb_version.sh 1970-01-01 00:00:00 +0000
+++ test/t/xb_version.sh 2011-06-15 06:05:55 +0000
@@ -0,0 +1,4 @@
1. inc/common.sh
2
3xtrabackup --version
4
05
=== modified file 'utils/build-binary.sh'
--- utils/build-binary.sh 2011-06-12 07:48:43 +0000
+++ utils/build-binary.sh 2011-06-15 06:05:55 +0000
@@ -12,8 +12,6 @@
12# Bail out on errors, be strict12# Bail out on errors, be strict
13set -ue13set -ue
1414
15XTRABACKUP_VERSION=1.6.2
16
17# Examine parameters15# Examine parameters
18TARGET="$(uname -m)"16TARGET="$(uname -m)"
19TARGET_CFLAGS=''17TARGET_CFLAGS=''
@@ -79,7 +77,8 @@
79SOURCEDIR="$(cd $(dirname "$0"); cd ..; pwd)"77SOURCEDIR="$(cd $(dirname "$0"); cd ..; pwd)"
80test -e "$SOURCEDIR/Makefile" || exit 278test -e "$SOURCEDIR/Makefile" || exit 2
8179
82# Extract version from the Makefile80# Read XTRABACKUP_VERSION from the VERSION file
81. $SOURCEDIR/VERSION
8382
84# Build information83# Build information
85REVISION="$(cd "$SOURCEDIR"; bzr log -r-1 | grep ^revno: | cut -d ' ' -f 2)"84REVISION="$(cd "$SOURCEDIR"; bzr log -r-1 | grep ^revno: | cut -d ' ' -f 2)"
8685
=== modified file 'utils/build-dpkg.sh'
--- utils/build-dpkg.sh 2011-06-12 07:48:43 +0000
+++ utils/build-dpkg.sh 2011-06-15 06:05:55 +0000
@@ -11,8 +11,6 @@
11# Bail out on errors, be strict11# Bail out on errors, be strict
12set -ue12set -ue
1313
14XTRABACKUP_VERSION='1.6.2'
15
16# Examine parameters14# Examine parameters
17go_out="$(getopt --options "k:K" --longoptions key:,nosign \15go_out="$(getopt --options "k:K" --longoptions key:,nosign \
18 --name "$(basename "$0")" -- "$@")"16 --name "$(basename "$0")" -- "$@")"
@@ -62,7 +60,9 @@
6260
63SOURCEDIR="$(cd $(dirname "$0"); cd ..; pwd)"61SOURCEDIR="$(cd $(dirname "$0"); cd ..; pwd)"
6462
65# Extract version from the Makefile63# Read XTRABACKUP_VERSION from the VERSION file
64. $SOURCEDIR/VERSION
65
66DEBIAN_VERSION="$(lsb_release -sc)"66DEBIAN_VERSION="$(lsb_release -sc)"
67REVISION="$(cd "$SOURCEDIR"; bzr log -r-1 | grep ^revno: | cut -d ' ' -f 2)"67REVISION="$(cd "$SOURCEDIR"; bzr log -r-1 | grep ^revno: | cut -d ' ' -f 2)"
6868
6969
=== modified file 'utils/build-rpm.sh'
--- utils/build-rpm.sh 2011-06-12 07:48:43 +0000
+++ utils/build-rpm.sh 2011-06-15 06:05:55 +0000
@@ -91,6 +91,9 @@
91SOURCEDIR="$(cd $(dirname "$0"); cd ..; pwd)"91SOURCEDIR="$(cd $(dirname "$0"); cd ..; pwd)"
92test -e "$SOURCEDIR/Makefile" || exit 292test -e "$SOURCEDIR/Makefile" || exit 2
9393
94# Read XTRABACKUP_VERSION from the VERSION file
95. $SOURCEDIR/VERSION
96
94# Build information97# Build information
95REDHAT_RELEASE="$(grep -o 'release [0-9][0-9]*' /etc/redhat-release | \98REDHAT_RELEASE="$(grep -o 'release [0-9][0-9]*' /etc/redhat-release | \
96 cut -d ' ' -f 2)"99 cut -d ' ' -f 2)"
97100
=== modified file 'utils/build.sh'
--- utils/build.sh 2011-06-12 07:47:07 +0000
+++ utils/build.sh 2011-06-15 06:05:55 +0000
@@ -93,8 +93,11 @@
93 mkdir $build_dir93 mkdir $build_dir
94 cp $top_dir/Makefile $top_dir/xtrabackup.c $build_dir94 cp $top_dir/Makefile $top_dir/xtrabackup.c $build_dir
9595
96 # Read XTRABACKUP_VERSION from the VERSION file
97 . $top_dir/VERSION
98
96 cd $build_dir99 cd $build_dir
97 $MAKE_CMD $xtrabackup_target100 $MAKE_CMD $xtrabackup_target XTRABACKUP_VERSION=$XTRABACKUP_VERSION
98 cd $top_dir101 cd $top_dir
99}102}
100103
101104
=== modified file 'utils/xtrabackup.spec'
--- utils/xtrabackup.spec 2011-06-12 07:48:43 +0000
+++ utils/xtrabackup.spec 2011-06-15 06:05:55 +0000
@@ -5,8 +5,6 @@
5%{!?buildnumber:%define buildnumber 1}5%{!?buildnumber:%define buildnumber 1}
6%define distribution rhel%{redhat_version}6%define distribution rhel%{redhat_version}
7%define release %{buildnumber}.%{distribution}7%define release %{buildnumber}.%{distribution}
8%define xtrabackup_version 1.6.2
9%define xtradb_version 11
10%{!?xtrabackup_revision:%define xtrabackup_revision undefined}8%{!?xtrabackup_revision:%define xtrabackup_revision undefined}
119
12%define __os_install_post /usr/lib/rpm/brp-compress10%define __os_install_post /usr/lib/rpm/brp-compress
1311
=== modified file 'xtrabackup.c'
--- xtrabackup.c 2011-03-31 06:45:03 +0000
+++ xtrabackup.c 2011-06-15 06:05:55 +0000
@@ -556,6 +556,7 @@
556/* === xtrabackup specific options === */556/* === xtrabackup specific options === */
557char xtrabackup_real_target_dir[FN_REFLEN] = "./xtrabackup_backupfiles/";557char xtrabackup_real_target_dir[FN_REFLEN] = "./xtrabackup_backupfiles/";
558char *xtrabackup_target_dir= xtrabackup_real_target_dir;558char *xtrabackup_target_dir= xtrabackup_real_target_dir;
559my_bool xtrabackup_version = FALSE;
559my_bool xtrabackup_backup = FALSE;560my_bool xtrabackup_backup = FALSE;
560my_bool xtrabackup_stats = FALSE;561my_bool xtrabackup_stats = FALSE;
561my_bool xtrabackup_prepare = FALSE;562my_bool xtrabackup_prepare = FALSE;
@@ -868,6 +869,9 @@
868869
869static struct my_option my_long_options[] =870static struct my_option my_long_options[] =
870{871{
872 {"version", 'v', "print xtrabackup version information",
873 (G_PTR *) &xtrabackup_version, (G_PTR *) &xtrabackup_version, 0, GET_BOOL,
874 NO_ARG, 0, 0, 0, 0, 0, 0},
871 {"target-dir", OPT_XTRA_TARGET_DIR, "destination directory", (G_PTR*) &xtrabackup_target_dir,875 {"target-dir", OPT_XTRA_TARGET_DIR, "destination directory", (G_PTR*) &xtrabackup_target_dir,
872 (G_PTR*) &xtrabackup_target_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},876 (G_PTR*) &xtrabackup_target_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
873 {"backup", OPT_XTRA_BACKUP, "take backup to target-dir",877 {"backup", OPT_XTRA_BACKUP, "take backup to target-dir",
@@ -1166,8 +1170,14 @@
11661170
1167static void print_version(void)1171static void print_version(void)
1168{1172{
1169 printf("%s Ver %s Rev %s for %s %s (%s)\n" ,my_progname,1173 printf("%s version %s for %s %s %s (%s) (revision id: %s)\n", my_progname,
1170 XTRABACKUP_VERSION, XTRABACKUP_REVISION, MYSQL_SERVER_VERSION,SYSTEM_TYPE,MACHINE_TYPE);1174 XTRABACKUP_VERSION,
1175#ifdef XTRADB_BASED
1176 "Percona Server",
1177#else
1178 "MySQL server",
1179#endif
1180 MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE, XTRABACKUP_REVISION);
1171}1181}
11721182
1173static void usage(void)1183static void usage(void)
@@ -1211,6 +1221,10 @@
1211 usage();1221 usage();
1212 exit(EXIT_SUCCESS);1222 exit(EXIT_SUCCESS);
1213 break;1223 break;
1224 case 'v':
1225 print_version();
1226 exit(EXIT_SUCCESS);
1227 break;
1214 default:1228 default:
1215 break;1229 break;
1216 }1230 }

Subscribers

People subscribed via source and target branches