Skip to content

Commit 2bccd3f

Browse files
mbroadstdaprahamian
authored andcommitted
fix: don't check non-unified topologies for session support check
1 parent 808cf37 commit 2bccd3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/cursor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ Cursor.prototype._initializeCursor = function(callback) {
586586
const cursor = this;
587587

588588
// NOTE: this goes away once cursors use `executeOperation`
589-
if (cursor.topology.shouldCheckForSessionSupport()) {
589+
if (cursor.topology.description != null && cursor.topology.shouldCheckForSessionSupport()) {
590590
cursor.topology.selectServer(ReadPreference.primaryPreferred, err => {
591591
if (err) {
592592
callback(err);

0 commit comments

Comments
 (0)