Skip to content

Commit

Permalink
fix(db): don't send session down to createIndex command
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Jun 26, 2018
1 parent 195be0b commit 559c195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/operations/db_ops.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ function createCreateIndexCommand(db, name, fieldOrSpec, options) {
if (selector['unique'] == null) selector['unique'] = finalUnique;

// Remove any write concern operations
const removeKeys = ['w', 'wtimeout', 'j', 'fsync', 'readPreference'];
const removeKeys = ['w', 'wtimeout', 'j', 'fsync', 'readPreference', 'session'];
for (let i = 0; i < removeKeys.length; i++) {
delete selector[removeKeys[i]];
}
Expand Down

0 comments on commit 559c195

Please sign in to comment.