Skip to content

Commit

Permalink
fix: don't check non-unified topologies for session support check
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst authored and daprahamian committed Aug 13, 2019
1 parent 808cf37 commit 2bccd3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ Cursor.prototype._initializeCursor = function(callback) {
const cursor = this;

// NOTE: this goes away once cursors use `executeOperation`
if (cursor.topology.shouldCheckForSessionSupport()) {
if (cursor.topology.description != null && cursor.topology.shouldCheckForSessionSupport()) {
cursor.topology.selectServer(ReadPreference.primaryPreferred, err => {
if (err) {
callback(err);
Expand Down

0 comments on commit 2bccd3f

Please sign in to comment.