fix to make sure execute_reliably method properly finds its attributes
John Napiorkowski [Tue, 3 Jun 2008 15:59:17 +0000 (15:59 +0000)]
lib/DBIx/Class/Storage/DBI/Replicated.pm

index ad3fff1..0846f85 100644 (file)
@@ -428,7 +428,7 @@ sub execute_reliably {
     };
     
     ##Reset to the original state
-    $self->schema->storage->read_handler($current); 
+    $self->read_handler($current); 
     
     ##Exception testing has to come last, otherwise you might leave the 
     ##read_handler set to master.