Skip to content

Commit

Permalink
* Adding missing diff of commit f97d7fd
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorim committed Jan 6, 2012
1 parent f97d7fd commit 839251e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/MHA/BinlogManager.pm
Expand Up @@ -240,6 +240,16 @@ sub find_correct_binlog_dir($$) {
}
}

sub find_correct_binlog_dir_file_from_prefix($$) {
my $binlog_prefix = shift;
my $binlog_dirs = shift;
my @binlog_dir_array = split( /,/, $binlog_dirs );
foreach (@binlog_dir_array) {
my @files = get_all_binlogs_from_prefix( $binlog_prefix, $_ );
return ( $_, $files[0] ) if ( $#files >= 0 );
}
}

sub get_all_binlogs_from_prefix($$) {
my $binlog_prefix = shift;
my $binlog_dir = shift;
Expand Down

0 comments on commit 839251e

Please sign in to comment.