added the default attrs to solve the failing test recently commited
John Napiorkowski [Wed, 5 Aug 2009 15:03:46 +0000 (15:03 +0000)]
lib/DBIx/Class/PK.pm

index 5be4833..cb59ec9 100644 (file)
@@ -43,6 +43,7 @@ sub discard_changes {
   delete $self->{_dirty_columns};
   return unless $self->in_storage; # Don't reload if we aren't real!
 
+  $attrs = { force_pool => 'master', %{ defined $attrs ? $attrs:{} } };
   if( my $current_storage = $self->get_from_storage($attrs)) {
 
     # Set $self to the current.