[Bps-public-commit] r16730 - in sd/branches/init-and-clone: lib/App/SD/Replica

sartak at bestpractical.com sartak at bestpractical.com
Thu Nov 6 15:08:19 EST 2008


Author: sartak
Date: Thu Nov  6 15:08:19 2008
New Revision: 16730

Modified:
   sd/branches/init-and-clone/   (props changed)
   sd/branches/init-and-clone/lib/App/SD/Replica/hm.pm
   sd/branches/init-and-clone/lib/App/SD/Replica/rt.pm

Log:
 r75152 at onn:  sartak | 2008-11-06 15:08:12 -0500
 Don't even try to push internal records


Modified: sd/branches/init-and-clone/lib/App/SD/Replica/hm.pm
==============================================================================
--- sd/branches/init-and-clone/lib/App/SD/Replica/hm.pm	(original)
+++ sd/branches/init-and-clone/lib/App/SD/Replica/hm.pm	Thu Nov  6 15:08:19 2008
@@ -145,6 +145,9 @@
         { isa => 'Prophet::ChangeSet' }
     );
 
+    # don't push internal records
+    return if $change->record_type =~ /^__/;
+
     require App::SD::Replica::hm::PushEncoder;
     my $recoder = App::SD::Replica::hm::PushEncoder->new( { sync_source => $self } );
     $recoder->integrate_change($change,$changeset);

Modified: sd/branches/init-and-clone/lib/App/SD/Replica/rt.pm
==============================================================================
--- sd/branches/init-and-clone/lib/App/SD/Replica/rt.pm	(original)
+++ sd/branches/init-and-clone/lib/App/SD/Replica/rt.pm	Thu Nov  6 15:08:19 2008
@@ -83,6 +83,9 @@
         { isa => 'Prophet::ChangeSet' }
     );
 
+    # don't push internal records
+    return if $change->record_type =~ /^__/;
+
     require App::SD::Replica::rt::PushEncoder;
     my $recoder = App::SD::Replica::rt::PushEncoder->new( { sync_source => $self } );
     $recoder->integrate_change($change,$changeset);



More information about the Bps-public-commit mailing list