Skip to content

Commit

Permalink
refactor(mongo-client): support a pool minSize option
Browse files Browse the repository at this point in the history
This is required for testing retryable writes with only a single
connection.

NODE-1105
  • Loading branch information
mbroadst committed Dec 4, 2017
1 parent 3cc4741 commit 796998b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/mongo_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ var validOptionNames = [
'fsync',
'readPreferenceTags',
'numberOfRetries',
'auto_reconnect'
'auto_reconnect',
'minSize'
];

var ignoreOptionNames = ['native_parser'];
Expand Down
3 changes: 2 additions & 1 deletion lib/topologies/replset.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ var legalOptionNames = [
'promoteValues',
'promoteBuffers',
'maxStalenessSeconds',
'promiseLibrary'
'promiseLibrary',
'minSize'
];

/**
Expand Down

0 comments on commit 796998b

Please sign in to comment.