mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
Merge kahlann.erinye.com:/home/df/mysql/build/mysql-4.1-build-work
into kahlann.erinye.com:/home/df/mysql/build/mysql-5.0-build-work
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user