diff options
author | unknown <df@kahlann.erinye.com> | 2006-12-14 13:32:27 +0100 |
---|---|---|
committer | unknown <df@kahlann.erinye.com> | 2006-12-14 13:32:27 +0100 |
commit | 991de0878054e54c18d1abfdf9ebaa3576337beb (patch) | |
tree | 34d0b014bba1288761eff662e2b95c6ed144ff3c /mysql-test | |
parent | 1c1c35d2b5c27172e3d9becd76c8fe01db118647 (diff) | |
parent | 60b3a86ad4b8b3ba3a0626191d106a20f0b2e871 (diff) | |
download | mariadb-git-991de0878054e54c18d1abfdf9ebaa3576337beb.tar.gz |
Merge kahlann.erinye.com:/home/df/mysql/build/mysql-4.1-build
into kahlann.erinye.com:/home/df/mysql/build/mysql-4.1-build-work
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/lib/mtr_unique.pl | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mysql-test/lib/mtr_unique.pl b/mysql-test/lib/mtr_unique.pl index a8fb320c773..3adc8413576 100644 --- a/mysql-test/lib/mtr_unique.pl +++ b/mysql-test/lib/mtr_unique.pl @@ -10,10 +10,16 @@ use Fcntl ':flock'; # Requested IDs are stored in a hash and released upon END. # my %mtr_unique_assigned_ids = (); +my $mtr_unique_pid; +BEGIN { + $mtr_unique_pid = $$ unless defined $mtr_unique_pid; +} END { - while(my ($id,$file) = each(%mtr_unique_assigned_ids)) { - print "Autoreleasing $file:$id\n"; - mtr_release_unique_id($file, $id); + if($mtr_unique_pid == $$) { + while(my ($id,$file) = each(%mtr_unique_assigned_ids)) { + print "Autoreleasing $file:$id\n"; + mtr_release_unique_id($file, $id); + } } } |