Skip to content

Commit

Permalink
Fixed #1589 - Investigate possible push replication issue
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
hideki committed Feb 15, 2017
1 parent 5e9ab12 commit a53f49d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ private void submitRevisions(final List<DocumentChange> 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;
Expand Down

0 comments on commit a53f49d

Please sign in to comment.