[Bps-public-commit] Prophet - A disconnected, replicated p2p database branch, master, updated. 8c8a86d4115b85215d7e4bb3f1b91b96872031bc

jesse jesse at bestpractical.com
Wed Feb 4 20:17:07 EST 2009


The branch, master has been updated
       via  8c8a86d4115b85215d7e4bb3f1b91b96872031bc (commit)
      from  74a6c919d1f72a2c5a8626a87e7e3465f02792fa (commit)

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

- Log -----------------------------------------------------------------
commit 8c8a86d4115b85215d7e4bb3f1b91b96872031bc
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Wed Feb 4 20:02:00 2009 -0500

    Don't assume that an incoming changeset has a source_uuid.

diff --git a/lib/Prophet/Replica.pm b/lib/Prophet/Replica.pm
index 5ef13c2..4fbd32b 100644
--- a/lib/Prophet/Replica.pm
+++ b/lib/Prophet/Replica.pm
@@ -902,10 +902,12 @@ sub record_integration_of_changeset {
     {
         return $self->store_local_metadata( 'last-changeset-from-' . $changeset->original_source_uuid => $changeset->original_sequence_no );
     }
+    if ($changeset->source_uuid) {
     if ( $self->last_changeset_from_source( $changeset->source_uuid ) < $changeset->sequence_no ) {
         return $self->store_local_metadata( 'last-changeset-from-' . $changeset->source_uuid => $changeset->sequence_no );
     }
 }
+}
 
 
 =head2 routines which need to be implemented by any Prophet backend store

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



More information about the Bps-public-commit mailing list