Skip to content

Commit 23011e9

Browse files
committed
fix(change-streams): ensure a majority read concern on initial agg
1 parent 6aca2c5 commit 23011e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/change_stream.js

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ var buildChangeStreamAggregationCommand = function (serverConfig, namespace, pip
149149
var command = {
150150
aggregate : namespace.collection,
151151
pipeline : changeStreamPipeline,
152+
readConcern: { level: 'majority' },
152153
cursor: {
153154
batchSize: options.batchSize || 1
154155
}

0 commit comments

Comments
 (0)