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
vkarpov15 authored and mbroadst committed Jun 26, 2018
1 parent bf0196e commit ad6f41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db.js
Expand Up @@ -1573,7 +1573,7 @@ var createCreateIndexCommand = function(db, name, fieldOrSpec, options) {
if (selector['unique'] == null) selector['unique'] = finalUnique;

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

0 comments on commit ad6f41a

Please sign in to comment.