Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 184612 | Differences between
and this patch

Collapse All | Expand All

(-)mysqlhotcopy.orig (-3 / +5 lines)
Lines 333-339 Link Here
333
333
334
    $rdb->{files}  = [ @db_files ];
334
    $rdb->{files}  = [ @db_files ];
335
    $rdb->{index}  = [ @index_files ];
335
    $rdb->{index}  = [ @index_files ];
336
    my @hc_tables = map { quote_names("$db.$_") } @dbh_tables;
336
    my @hc_tables = map { quote_names("$_") } @dbh_tables;
337
    $rdb->{tables} = [ @hc_tables ];
337
    $rdb->{tables} = [ @hc_tables ];
338
338
339
    $rdb->{raid_dirs} = [ get_raid_dirs( $rdb->{files} ) ];
339
    $rdb->{raid_dirs} = [ get_raid_dirs( $rdb->{files} ) ];
Lines 464-476 Link Here
464
}
464
}
465
else {
465
else {
466
    my $start = time;
466
    my $start = time;
467
    $hc_locks =~ s/\`//g;
468
    $hc_tables =~ s/\`//g;
467
    $dbh->do("LOCK TABLES $hc_locks");
469
    $dbh->do("LOCK TABLES $hc_locks");
468
    printf "Locked $num_tables tables in %d seconds.\n", time-$start unless $opt{quiet};
470
    printf "Locked $num_tables tables in %d seconds.\n", time-$start unless $opt{quiet};
469
    $hc_started = time;	# count from time lock is granted
471
    $hc_started = time;	# count from time lock is granted
470
472
471
    # flush tables to make on-disk copy uptodate
473
    # flush tables to make on-disk copy uptodate
472
    $start = time;
474
    $start = time;
473
    $dbh->do("FLUSH TABLES /*!32323 $hc_tables */");
475
    $dbh->do("FLUSH TABLES");
474
    printf "Flushed tables ($hc_tables) in %d seconds.\n", time-$start unless $opt{quiet};
476
    printf "Flushed tables ($hc_tables) in %d seconds.\n", time-$start unless $opt{quiet};
475
    $dbh->do( "FLUSH LOGS" ) if ( $opt{flushlog} );
477
    $dbh->do( "FLUSH LOGS" ) if ( $opt{flushlog} );
476
    $dbh->do( "RESET MASTER" ) if ( $opt{resetmaster} );
478
    $dbh->do( "RESET MASTER" ) if ( $opt{resetmaster} );
Lines 478-484 Link Here
478
480
479
    if ( $opt{record_log_pos} ) {
481
    if ( $opt{record_log_pos} ) {
480
	record_log_pos( $dbh, $opt{record_log_pos} );
482
	record_log_pos( $dbh, $opt{record_log_pos} );
481
	$dbh->do("FLUSH TABLES /*!32323 $hc_tables */");
483
	$dbh->do("FLUSH TABLES");
482
    }
484
    }
483
}
485
}
484
486

Return to bug 184612