File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ var ServerCapabilities = function(ismaster) {
203
203
var maxNumberOfDocsInBatch = ismaster . maxWriteBatchSize || 1000 ;
204
204
var commandsTakeWriteConcern = false ;
205
205
var commandsTakeCollation = false ;
206
+ var sessionSupport = false ;
206
207
207
208
if ( ismaster . minWireVersion >= 0 ) {
208
209
textSearch = true ;
@@ -236,6 +237,10 @@ var ServerCapabilities = function(ismaster) {
236
237
ismaster . maxWireVersion = 0 ;
237
238
}
238
239
240
+ if ( typeof ismaster . logicalSessionTimeoutMinutes !== 'undefined' ) {
241
+ sessionSupport = true ;
242
+ }
243
+
239
244
// Map up read only parameters
240
245
setup_get_property ( this , 'hasAggregationCursor' , aggregationCursor ) ;
241
246
setup_get_property ( this , 'hasWriteCommands' , writeCommands ) ;
@@ -248,6 +253,7 @@ var ServerCapabilities = function(ismaster) {
248
253
setup_get_property ( this , 'maxNumberOfDocsInBatch' , maxNumberOfDocsInBatch ) ;
249
254
setup_get_property ( this , 'commandsTakeWriteConcern' , commandsTakeWriteConcern ) ;
250
255
setup_get_property ( this , 'commandsTakeCollation' , commandsTakeCollation ) ;
256
+ setup_get_property ( this , 'hasSessionSupport' , sessionSupport ) ;
251
257
} ;
252
258
253
259
exports . Store = Store ;
You can’t perform that action at this time.
0 commit comments