X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FPK.pm;h=cb59ec963be2782334b935a35fd9d26f708fe5e4;hb=6988233db06abf237e175ced2beeb697630e046d;hp=5be483325f8de54751f396d555394a511075da3d;hpb=d4daee7b54e38e4b3d3d0a77759bddc1a4ede6e5;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/PK.pm b/lib/DBIx/Class/PK.pm index 5be4833..cb59ec9 100644 --- a/lib/DBIx/Class/PK.pm +++ b/lib/DBIx/Class/PK.pm @@ -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.