Skip to content

Commit 796998b

Browse files
committed
refactor(mongo-client): support a pool minSize option
This is required for testing retryable writes with only a single connection. NODE-1105
1 parent 3cc4741 commit 796998b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/mongo_client.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ var validOptionNames = [
8888
'fsync',
8989
'readPreferenceTags',
9090
'numberOfRetries',
91-
'auto_reconnect'
91+
'auto_reconnect',
92+
'minSize'
9293
];
9394

9495
var ignoreOptionNames = ['native_parser'];

lib/topologies/replset.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ var legalOptionNames = [
7575
'promoteValues',
7676
'promoteBuffers',
7777
'maxStalenessSeconds',
78-
'promiseLibrary'
78+
'promiseLibrary',
79+
'minSize'
7980
];
8081

8182
/**

0 commit comments

Comments
 (0)