[Bast-commits] r4567 -
DBIx-Class/0.08/branches/replication_dedux/lib/DBIx/Class/Storage/DBI/Replicated
jnapiorkowski at dev.catalyst.perl.org
jnapiorkowski at dev.catalyst.perl.org
Thu Jul 10 22:14:05 BST 2008
Author: jnapiorkowski
Date: 2008-07-10 22:14:04 +0100 (Thu, 10 Jul 2008)
New Revision: 4567
Modified:
DBIx-Class/0.08/branches/replication_dedux/lib/DBIx/Class/Storage/DBI/Replicated/Replicant.pm
Log:
make sure debugobj calls always go to the master
Modified: DBIx-Class/0.08/branches/replication_dedux/lib/DBIx/Class/Storage/DBI/Replicated/Replicant.pm
===================================================================
--- DBIx-Class/0.08/branches/replication_dedux/lib/DBIx/Class/Storage/DBI/Replicated/Replicant.pm 2008-07-10 19:58:28 UTC (rev 4566)
+++ DBIx-Class/0.08/branches/replication_dedux/lib/DBIx/Class/Storage/DBI/Replicated/Replicant.pm 2008-07-10 21:14:04 UTC (rev 4567)
@@ -1,6 +1,7 @@
package DBIx::Class::Storage::DBI::Replicated::Replicant;
use Moose::Role;
+requires qw/_query_start/;
=head1 NAME
@@ -63,6 +64,16 @@
$self->$method("DSN: $dsn SQL: $sql", @bind);
};
+=head2 debugobj
+
+Override the debugobj method to redirect this method call back to the master.
+
+=cut
+
+sub debugobj {
+ return shift->schema->storage->debugobj;
+}
+
=head1 AUTHOR
John Napiorkowski <john.napiorkowski at takkle.com>
More information about the Bast-commits
mailing list