Skip to content

Commit a53f49d

Browse files
author
hideki
committed
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.
1 parent 5e9ab12 commit a53f49d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/couchbase/lite/replicator/PusherInternal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ private void submitRevisions(final List<DocumentChange> changes) {
749749
// Skip revisions that originally came from the database I'm syncing to:
750750
URL source = change.getSource();
751751
if (source != null && source.toURI().equals(remoteUri))
752-
return;
752+
continue;
753753
RevisionInternal rev = change.getAddedRevision();
754754
if (rev == null)
755755
continue;

0 commit comments

Comments
 (0)