Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 582cc99

Browse files
authored
Merge pull request #422 from cloudant/421-bulk-latest
Add latest flag to _bulk_get calls
2 parents a2a8cb3 + f196d9e commit 582cc99

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
- [FIXED] Issue where replicator would not get the latest revision if `_bulk_get`
3+
was available.
4+
15
# 1.1.4 (2016-11-23)
26
- [FIXED] Issue performing cookie authentication in version 1.1.3.
37

cloudant-sync-datastore-core/src/main/java/com/cloudant/mazha/CouchClient.java

+1
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ public Iterable<DocumentRevsList> bulkReadDocsWithOpenRevisions(List<BulkGetRequ
445445
boolean pullAttachmentsInline) {
446446
Map<String, Object> options = new HashMap<String, Object>();
447447
options.put("revs", true);
448+
options.put("latest", true);
448449

449450
if (pullAttachmentsInline) {
450451
options.put("attachments", true);

cloudant-sync-datastore-core/src/test/java/com/cloudant/sync/replication/MissingRevsReplicationTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ protected PullStrategy getPullStrategy() {
5454
return s;
5555
}
5656

57-
@Ignore //pending resolution of case 79041
5857
@Test
5958
public void testReplicationWithMissingRevision() throws Exception {
6059
// Create doc

0 commit comments

Comments
 (0)