projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
converted replicant to a role so that we can apply it after ensure_connected properly...
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Storage
/
DBI
/
mysql.pm
diff --git
a/lib/DBIx/Class/Storage/DBI/mysql.pm
b/lib/DBIx/Class/Storage/DBI/mysql.pm
index
ec36176
..
5c59d18
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI/mysql.pm
+++ b/
lib/DBIx/Class/Storage/DBI/mysql.pm
@@
-34,6
+34,15
@@
sub _svp_rollback {
$self->dbh->do("ROLLBACK TO SAVEPOINT $name")
}
+sub is_replicating {
+ my $self = shift @_;
+}
+
+sub lag_behind_master {
+ my $self = shift @_;
+ return $self->dbh->selectrow_hashref('show slave status');
+}
+
1;
=head1 NAME