[Bps-public-commit] r15046 - in Prophet/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Tue Aug 12 07:17:51 EDT 2008


Author: sartak
Date: Tue Aug 12 07:17:51 2008
New Revision: 15046

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/Replica.pm

Log:
 r69353 at onn:  sartak | 2008-08-12 07:17:44 -0400
 No need to do this hash lookup for every single changeset we traverse


Modified: Prophet/trunk/lib/Prophet/Replica.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Replica.pm	(original)
+++ Prophet/trunk/lib/Prophet/Replica.pm	Tue Aug 12 07:17:51 2008
@@ -452,10 +452,11 @@
     $self->log("Evaluating changesets to apply to ".substr($args{'for'}->uuid,0,6). " starting with ".  $args{for}->last_changeset_from_source( $self->uuid ));
 
 
+    my $callback = $args{callback};
     $self->traverse_changesets(
         after    => $args{for}->last_changeset_from_source( $self->uuid ),
         callback => sub {
-            $args{callback}->( $_[0] )
+            $callback->( $_[0] )
                 if $self->should_send_changeset( changeset => $_[0], to => $args{for} );
         }
     );



More information about the Bps-public-commit mailing list