From: Rafael Kitover Date: Mon, 10 Aug 2009 08:13:19 +0000 (+0000) Subject: make _determine_driver more reentrant X-Git-Tag: v0.08109~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bf77e171c05a74f4fd6941090707ba08a1d1a5f1;p=dbsrgits%2FDBIx-Class.git make _determine_driver more reentrant --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index 8a0b8cc..9fdb67c 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -824,7 +824,7 @@ sub _run_connection_actions { sub _determine_driver { my ($self) = @_; - if (not $self->_driver_determined) { + if ((not $self->_driver_determined) && (not $self->{_in_determine_driver})) { my $started_unconnected = 0; local $self->{_in_determine_driver} = 1;