X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FReplicated.pm;h=6dad218f20ef9fd199e4c844245468bd9727d5fc;hb=ec6415a9f63389db5a76f593c2d1686015ca95cd;hp=967d0e0f3ed31abc6a6abfa523dc478450fb3949;hpb=0a3441ee8e0e747cfa05eff02df0d918ed5d6acb;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/Replicated.pm b/lib/DBIx/Class/Storage/DBI/Replicated.pm index 967d0e0..6dad218 100644 --- a/lib/DBIx/Class/Storage/DBI/Replicated.pm +++ b/lib/DBIx/Class/Storage/DBI/Replicated.pm @@ -345,7 +345,6 @@ has 'write_handler' => ( _sqlt_minimum_version _sql_maker_opts _conn_pid - _conn_tid _dbh_autocommit _native_data_type _get_dbh @@ -362,15 +361,12 @@ has 'write_handler' => ( _do_query _dbh_sth _dbh_execute - _prefetch_insert_auto_nextvals /], ); my @unimplemented = qw( _arm_global_destructor - _preserve_foreign_dbh _verify_pid - _verify_tid get_use_dbms_capability set_use_dbms_capability @@ -430,8 +426,9 @@ around connect_info => sub { $merge->merge((delete $opts{pool_args} || {}), $self->pool_args) ); - $self->pool($self->_build_pool) - if $self->pool; + ## Since we possibly changed the pool_args, we need to clear the current + ## pool object so that next time it is used it will be rebuilt. + $self->clear_pool; } if (@opts{qw/balancer_type balancer_args/}) {