~akopytov/percona-xtrabackup/bug907147-1.7

« back to all changes in this revision

Viewing changes to innobackupex

  • Committer: Valentine Gostev
  • Date: 2011-11-30 08:34:39 UTC
  • mfrom: (242.30.11 1.6)
  • mto: This revision was merged to the branch mainline in revision 341.
  • Revision ID: core.longbow@gmail.com-20111130083439-8ibdnmuwa96s1etu
Merge from 1.6 (lp:~longbow/percona-xtrabackup/fix687544-1.6)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
use Pod::Usage qw(pod2usage);
13
13
use POSIX "strftime";
14
14
use POSIX ":sys_wait_h";
15
 
use POSIX "tmpnam";
 
15
# use POSIX "tmpnam";
16
16
use FileHandle;
17
17
use File::Basename;
 
18
use File::Temp;
18
19
use English qw(-no_match_vars);
19
20
 
20
21
# version of this script
152
153
my $mysql_server_version = '';
153
154
 
154
155
# name of the file where stderr of mysql process is directed
155
 
my $mysql_stderr = 'stderr';
 
156
my $mysql_stderr_fh = File::Temp->new();
 
157
my $mysql_stderr = $mysql_stderr_fh->filename;
156
158
 
157
159
# name of the file where stdout of mysql process is directed
158
 
my $mysql_stdout = 'stdout';
 
160
my $mysql_stdout_fh = File::Temp->new();
 
161
my $mysql_stdout = $mysql_stdout_fh->filename;
159
162
 
160
163
# name of the file where binlog position info is written
161
164
my $binlog_info;
1495
1498
        if (!$option_remote_host && !$option_stream) {
1496
1499
        $backup_config_file = $backup_dir . '/backup-my.cnf';
1497
1500
        $suspend_file = $backup_dir . '/xtrabackup_suspended';
1498
 
        $mysql_stdout = $backup_dir . '/mysql-stdout';
1499
 
        $mysql_stderr = $backup_dir . '/mysql-stderr';
1500
1501
        $binlog_info = $backup_dir . '/xtrabackup_binlog_info';
1501
1502
        $slave_info = $backup_dir . '/xtrabackup_slave_info';
1502
1503
        } else {
1503
1504
        $suspend_file = get_option(\%config, 'mysqld', 'datadir') . '/xtrabackup_suspended';
1504
1505
        $tmp_logfile = $option_tmpdir . '/xtrabackup_logfile';
1505
 
        $mysql_stdout = $option_tmpdir . '/mysql-stdout';
1506
 
        $mysql_stderr = $option_tmpdir . '/mysql-stderr';
1507
1506
        if ($option_stream) {
1508
1507
            $backup_config_file = $option_tmpdir . '/backup-my.cnf';
1509
1508
            $binlog_info = $option_tmpdir . '/xtrabackup_binlog_info';