[Bps-public-commit] Prophet branch, master, updated. 401f51ce5d9ae5aa562506e4994316fb3bbc9007

jesse jesse at bestpractical.com
Tue Aug 25 16:55:59 EDT 2009


The branch, master has been updated
       via  401f51ce5d9ae5aa562506e4994316fb3bbc9007 (commit)
      from  90449f4372e48967413eef3a89e81c259a98a383 (commit)

Summary of changes:
 lib/Prophet/Replica.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 401f51ce5d9ae5aa562506e4994316fb3bbc9007
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Aug 25 16:55:46 2009 -0400

    Inhibit a warning when pulling from foreign replicas

diff --git a/lib/Prophet/Replica.pm b/lib/Prophet/Replica.pm
index a3076fe..62ab3be 100644
--- a/lib/Prophet/Replica.pm
+++ b/lib/Prophet/Replica.pm
@@ -253,7 +253,7 @@ sub import_changesets {
                     # If we've seen the changeset, yet we still got here, it means we saw it by original 
                     # replica/sequence pair, but not # the direct upstream's uuid/sequence pair.
                     # recording that can help performance a whole bunch for next sync
-                    if ($source->uuid && $seq > $self->last_changeset_from_source($source->uuid)) {
+                    if ($source->uuid && $seq && $seq > $self->last_changeset_from_source($source->uuid)) {
                           $self->record_last_changeset_from_replica( $source->uuid => $seq);
                     }
                     return undef;

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list