We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 808cf37 commit 2bccd3fCopy full SHA for 2bccd3f
lib/core/cursor.js
@@ -586,7 +586,7 @@ Cursor.prototype._initializeCursor = function(callback) {
586
const cursor = this;
587
588
// NOTE: this goes away once cursors use `executeOperation`
589
- if (cursor.topology.shouldCheckForSessionSupport()) {
+ if (cursor.topology.description != null && cursor.topology.shouldCheckForSessionSupport()) {
590
cursor.topology.selectServer(ReadPreference.primaryPreferred, err => {
591
if (err) {
592
callback(err);
0 commit comments