From 23011e9849239f350fb1f3318c67aa2be29c0903 Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Wed, 23 Aug 2017 11:14:43 -0400 Subject: [PATCH] fix(change-streams): ensure a majority read concern on initial agg --- lib/change_stream.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/change_stream.js b/lib/change_stream.js index 2eeedaa995..df991ccc76 100644 --- a/lib/change_stream.js +++ b/lib/change_stream.js @@ -149,6 +149,7 @@ var buildChangeStreamAggregationCommand = function (serverConfig, namespace, pip var command = { aggregate : namespace.collection, pipeline : changeStreamPipeline, + readConcern: { level: 'majority' }, cursor: { batchSize: options.batchSize || 1 }