Skip to content

Commit 71a0270

Browse files
committed
refactor(topology): don't explicit reset pool on SDAM unrecoverable
1 parent a2f1b21 commit 71a0270

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/core/sdam/topology.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,9 @@ function serverErrorEventHandler(server, topology) {
10431043
}
10441044

10451045
if (isSDAMUnrecoverableError(err, server)) {
1046-
resetServerState(server, err, { clearPool: true });
1046+
// NOTE: this must be commented out until we switch to the new CMAP pool because
1047+
// we presently _always_ clear the pool on error.
1048+
resetServerState(server, err /*, { clearPool: true } */);
10471049
return;
10481050
}
10491051

0 commit comments

Comments
 (0)