List:Commits« Previous MessageNext Message »
From:tim Date:October 2 2006 10:18pm
Subject:bk commit into 4.1 tree (tsmith:1.2557)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of tim. When tim does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-10-02 16:18:42-06:00, tsmith@stripped +1 -0
  Merge siva.hindu.god:/usr/home/tim/m/bk/40
  into  siva.hindu.god:/usr/home/tim/m/bk/41
  MERGE: 1.1346.1.850

  scripts/mysqlhotcopy.sh@stripped, 2006-10-02 16:18:39-06:00, tsmith@stripped +0 -0
    Auto merged
    MERGE: 1.43.1.4

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	tsmith
# Host:	siva.hindu.god
# Root:	/usr/home/tim/m/bk/41/RESYNC

--- 1.50/scripts/mysqlhotcopy.sh	2006-10-02 16:18:47 -06:00
+++ 1.51/scripts/mysqlhotcopy.sh	2006-10-02 16:18:47 -06:00
@@ -262,6 +262,7 @@ my $hc_locks = "";
 my $hc_tables = "";
 my $num_tables = 0;
 my $num_files = 0;
+my $raid_dir_regex = '[A-Za-z0-9]{2}';
 
 foreach my $rdb ( @db_desc ) {
     my $db = $rdb->{src};
@@ -293,7 +294,7 @@ foreach my $rdb ( @db_desc ) {
     my @raid_dir = ();
 
     while ( defined( my $name = readdir DBDIR ) ) {
-	if ( $name =~ /^\d\d$/ && -d "$db_dir/$name" ) {
+	if ( $name =~ /^$raid_dir_regex$/ && -d "$db_dir/$name" ) {
 	    push @raid_dir, $name;
 	}
 	else {
@@ -601,7 +602,7 @@ sub copy_files {
 	# add recursive option for scp
 	$cp.= " -r" if $^O =~ /m^(solaris|linux|freebsd|darwin)$/ && $method =~ /^scp\b/;
 
-	my @non_raid = map { "'$_'" } grep { ! m:/\d{2}/[^/]+$: } @$files;
+	my @non_raid = map { "'$_'" } grep { ! m:/$raid_dir_regex/[^/]+$: } @$files;
 
 	# add files to copy and the destination directory
 	safe_system( $cp, @non_raid, "'$target'" ) if (@non_raid);
@@ -809,7 +810,7 @@ sub get_raid_dirs {
 
     my %dirs = ();
     foreach my $f ( @$r_files ) {
-	if ( $f =~ m:^(\d\d)/: ) {
+	if ( $f =~ m:^($raid_dir_regex)/: ) {
 	    $dirs{$1} = 1;
 	}
     }
Thread
bk commit into 4.1 tree (tsmith:1.2557)tim3 Oct