Merge lp:~vlad-lesin/percona-server/5.1-bug-1322218 into lp:percona-server/5.1

Proposed by Vlad Lesin
Status: Work in progress
Proposed branch: lp:~vlad-lesin/percona-server/5.1-bug-1322218
Merge into: lp:percona-server/5.1
Diff against target: 47 lines (+28/-2)
1 file modified
Percona-Server/scripts/mysql_install_db.pl.in (+28/-2)
To merge this branch: bzr merge lp:~vlad-lesin/percona-server/5.1-bug-1322218
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Needs Information
Review via email: mp+234291@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

    - The fix is correct but across all three branches there are two
      distinct bugs fixed. Bug 1322218 should be assigned to one of
      them (e.g. handling of empty mysql.user) and a new one, with an
      upstream bug if applicable, should be logged for the other bug
      (mysql_install_db not handling mysqld startup failure)

review: Needs Information
Revision history for this message
Vlad Lesin (vlad-lesin) wrote :

> - The fix is correct but across all three branches there are two
> distinct bugs fixed. Bug 1322218 should be assigned to one of
> them (e.g. handling of empty mysql.user)
Yes, I checked all current versions and they do not contain failed code. So I think this bug can be closed.

> and a new one, with an
> upstream bug if applicable, should be logged for the other bug
> (mysql_install_db not handling mysqld startup failure)
Done, see bug #1382782.

Revision history for this message
Vlad Lesin (vlad-lesin) wrote :

> - The fix is correct but across all three branches there are two
> distinct bugs fixed. Bug 1322218 should be assigned to one of
> them (e.g. handling of empty mysql.user)
Yes, I checked all current versions and they do not contain failed code. So I think this bug can be closed.

> and a new one, with an
> upstream bug if applicable, should be logged for the other bug
> (mysql_install_db not handling mysqld startup failure)
Done, see bug #1382782.

Unmerged revisions

618. By Vlad Lesin

Bug #1322218 fix.

In the case if mysqld returns error don't continue mysql_install_db script
execution.

The second case when floating point error happens due to dividing by zero when
the number of records in "users" table is null or there is no such table is not
fixed as 5.1 does not contain such code.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Percona-Server/scripts/mysql_install_db.pl.in'
--- Percona-Server/scripts/mysql_install_db.pl.in 2013-02-25 14:26:00 +0000
+++ Percona-Server/scripts/mysql_install_db.pl.in 2014-09-11 10:57:48 +0000
@@ -466,7 +466,20 @@
466466
467 print PIPE $_;467 print PIPE $_;
468 }468 }
469 close PIPE;469 if (!close PIPE)
470 {
471 if ($!)
472 {
473 error($opt, "Error closing mysqld pipe: $!");
474 }
475 else
476 {
477 error($opt,
478 "Installation of system tables failed!",
479 "mysqld returned $? exit status",
480 "Examine the logs in $opt->{ldata} for more information.");
481 }
482 };
470 close SQL;483 close SQL;
471 close SQL2;484 close SQL2;
472485
@@ -487,7 +500,20 @@
487 {500 {
488 print PIPE $_;501 print PIPE $_;
489 }502 }
490 close PIPE;503 if (!close PIPE)
504 {
505 if ($!)
506 {
507 error($opt, "Error closing mysqld pipe: $!");
508 }
509 else
510 {
511 error($opt,
512 "Installation of system tables failed!",
513 "mysqld returned $? exit status",
514 "Examine the logs in $opt->{ldata} for more information.");
515 }
516 };
491 close SQL;517 close SQL;
492518
493 report_verbose($opt,"OK");519 report_verbose($opt,"OK");

Subscribers

People subscribed via source and target branches