Merge lp:~stewart/percona-server/bug1168032 into lp:percona-server/5.5

Proposed by Stewart Smith
Status: Merged
Merge reported by: Alexey Kopytov
Merged at revision: not available
Proposed branch: lp:~stewart/percona-server/bug1168032
Merge into: lp:percona-server/5.5
Diff against target: 26 lines (+6/-5)
1 file modified
build/percona-server.spec (+6/-5)
To merge this branch: bzr merge lp:~stewart/percona-server/bug1168032
Reviewer Review Type Date Requested Status
Ignacio Nin (community) Disapprove
Percona core Pending
Review via email: mp+160241@code.launchpad.net

Description of the change

Fix rather annoying packaging bug in SPEC file: on upgrade the server would not be started again, leading to all sorts of trouble if you have unattended automatic updates turned on.

To post a comment you must log in.
Revision history for this message
Ignacio Nin (ignacio-nin) wrote :

Confirmed to fix this regression

review: Approve
Revision history for this message
Ignacio Nin (ignacio-nin) wrote :

5.1 confirmed not to be affected.

Percona XtraBackup 5.5.30 is affected, since the regression was introduced in revno 472 in the 5.5 tree and this revision has been merged.

Percona Server 5.6 is not affected yet since 472 hasn't been merged, but it will be as soon as this revision gets to its tree.

In order to merge to PXC and to be able in the future to merge to 5.6, we need to rebase the fix on an earlier revision (ideally 472). Rejecting this merge and rebasing it to 472 at lp:~ignacio-nin/percona-server/5.5-bug1168032, will request reviews there.

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

Ignacio Nin <email address hidden> writes:
> Percona XtraBackup 5.5.30 is affected, since the regression was introduced in revno 472 in the 5.5 tree and this revision has been merged.
>
> Percona Server 5.6 is not affected yet since 472 hasn't been merged, but it will be as soon as this revision gets to its tree.
>
> In order to merge to PXC and to be able in the future to merge to 5.6, we need to rebase the fix on an earlier revision (ideally 472). Rejecting this merge and rebasing it to 472 at lp:~ignacio-nin/percona-server/5.5-bug1168032, will request reviews there.

Sounds good.

--
Stewart Smith

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'build/percona-server.spec'
2--- build/percona-server.spec 2013-04-16 06:45:12 +0000
3+++ build/percona-server.spec 2013-04-23 00:28:28 +0000
4@@ -720,16 +720,17 @@
5 NEW_VERSION=%{mysql_version}-%{release}
6 STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
7
8+if [ -f $STATUS_FILE ] ; then
9+ SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
10+else
11+ SERVER_TO_START=''
12+fi
13+
14 if [ $1 -eq 1 ]; then
15 # ----------------------------------------------------------------------
16 # Create data directory if needed, check whether upgrade or install
17 # ----------------------------------------------------------------------
18 if [ ! -d $mysql_datadir ] ; then mkdir -m 755 $mysql_datadir; fi
19-if [ -f $STATUS_FILE ] ; then
20- SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
21-else
22- SERVER_TO_START=''
23-fi
24 # echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
25 if [ ! -d $mysql_datadir/mysql ] ; then
26 mkdir $mysql_datadir/mysql;

Subscribers

People subscribed via source and target branches