Skip to content

Commit

Permalink
fix(change-streams): ensure a majority read concern on initial agg
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Aug 30, 2017
1 parent 6aca2c5 commit 23011e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/change_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 23011e9

Please sign in to comment.