Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix(pool): check topology exists before verifying session support
Browse files Browse the repository at this point in the history
NODE-1088
  • Loading branch information
mbroadst committed Oct 2, 2017
1 parent e700b79 commit 0aa146d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/connection/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ var DESTROYED = 'destroyed';
var _id = 0;

function supportsClusterTime(topology) {
if (topology == null) return false;
return topology.ismaster == null ? false : topology.ismaster.maxWireVersion >= 6;
}

Expand Down

0 comments on commit 0aa146d

Please sign in to comment.