Comment 2 for bug 1095551

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

Fix #1 is:

@@ -18,6 +18,7 @@
 use File::Find;
 use File::Copy;
 use English qw(-no_match_vars);
+use Time::HiRes qw(usleep);

 # version of this script
 my $innobackup_version = '1.5.1-xtrabackup';
@@ -1179,7 +1180,7 @@
         my $stderr = '';
         alarm $mysql_response_timeout;
         while (index($stdout, $hello_message) < 0) {
- sleep 2;
+ usleep(100000);
             if ($mysql_pid && $mysql_pid == waitpid($mysql_pid, &WNOHANG)) {
                 my $reason = `cat $mysql_stderr`;
                 $mysql_pid = '';