Commit 60b3a86a authored by unknown's avatar unknown

do not autorelease build ids when a child of mysql-test-run.pl dies


mysql-test/lib/mtr_unique.pl:
  do not autorelease build ids when a child dies
parent c29d22c9
...@@ -10,10 +10,16 @@ use Fcntl ':flock'; ...@@ -10,10 +10,16 @@ use Fcntl ':flock';
# Requested IDs are stored in a hash and released upon END. # Requested IDs are stored in a hash and released upon END.
# #
my %mtr_unique_assigned_ids = (); my %mtr_unique_assigned_ids = ();
my $mtr_unique_pid;
BEGIN {
$mtr_unique_pid = $$ unless defined $mtr_unique_pid;
}
END { END {
while(my ($id,$file) = each(%mtr_unique_assigned_ids)) { if($mtr_unique_pid == $$) {
print "Autoreleasing $file:$id\n"; while(my ($id,$file) = each(%mtr_unique_assigned_ids)) {
mtr_release_unique_id($file, $id); print "Autoreleasing $file:$id\n";
mtr_release_unique_id($file, $id);
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment