From: Rafael Kitover Date: Wed, 28 Apr 2010 10:20:01 +0000 (+0000) Subject: add _verify_pid and _verify_tid to methods that croak in ::Replicated X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=572338e0c6b2b119362ae59880813b0d5188c62f;p=dbsrgits%2FDBIx-Class-Historic.git add _verify_pid and _verify_tid to methods that croak in ::Replicated --- diff --git a/lib/DBIx/Class/Storage/DBI/Replicated.pm b/lib/DBIx/Class/Storage/DBI/Replicated.pm index 51bd137..ef0cdaf 100644 --- a/lib/DBIx/Class/Storage/DBI/Replicated.pm +++ b/lib/DBIx/Class/Storage/DBI/Replicated.pm @@ -373,6 +373,8 @@ has 'write_handler' => ( my @unimplemented = qw( _arm_global_destructor _preserve_foreign_dbh + _verify_pid + _verify_tid ); for my $method (@unimplemented) { @@ -1049,22 +1051,6 @@ sub _get_server_version { return $self->_server_info->{dbms_version}; } -sub _verify_pid { - my $self = shift; - - for my $storage ($self->all_storages) { - $storage->_verify_pid; - } -} - -sub _verify_tid { - my $self = shift; - - for my $storage ($self->all_storages) { - $storage->_verify_tid; - } -} - =head1 GOTCHAS Due to the fact that replicants can lag behind a master, you must take care to