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
index 002f50b..5c59d18 100644 (file)
@@ -40,6 +40,7 @@ sub is_replicating {
 
 sub lag_behind_master {
     my $self = shift @_;
+    return $self->dbh->selectrow_hashref('show slave status');
 }
 
 1;