From a53f49dc4a3cac6b2ebc66f87e2f82a3377a288a Mon Sep 17 00:00:00 2001 From: hideki Date: Tue, 14 Feb 2017 18:02:19 -0800 Subject: [PATCH] Fixed #1589 - Investigate possible push replication issue - DatabaseChanges notification could be sent with mixed documents that are from local and remote. `submitRevisions()` method returns from the method once it found document from remote. It makes locally created document skipped. --- src/main/java/com/couchbase/lite/replicator/PusherInternal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/couchbase/lite/replicator/PusherInternal.java b/src/main/java/com/couchbase/lite/replicator/PusherInternal.java index 97ebaad0..2d89e03f 100644 --- a/src/main/java/com/couchbase/lite/replicator/PusherInternal.java +++ b/src/main/java/com/couchbase/lite/replicator/PusherInternal.java @@ -749,7 +749,7 @@ private void submitRevisions(final List changes) { // Skip revisions that originally came from the database I'm syncing to: URL source = change.getSource(); if (source != null && source.toURI().equals(remoteUri)) - return; + continue; RevisionInternal rev = change.getAddedRevision(); if (rev == null) continue;