File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -311,13 +311,11 @@ export class Server extends TypedEventEmitter<ServerEvents> {
311
311
// are waiting for a connection are included in the operation count. Load balanced
312
312
// mode will only ever have a single server, so the operation count doesn't matter.
313
313
// Incrementing the operation count above the logic to handle load balanced mode would
314
- // require special logic to decrement it again, or would double increment (the load
315
- // balanced code makes a recursive call). Instead, we increment the count after this
316
- // check.
314
+ // require special logic to decrement it again, or would double increment. Instead, we
315
+ // increment the count after this check.
317
316
if ( this . loadBalanced && session && conn == null && isPinnableCommand ( cmd , session ) ) {
318
317
conn = await this . pool . checkOut ( ) ;
319
318
session . pin ( conn ) ;
320
- return this . command ( ns , cmd , finalOptions ) ;
321
319
}
322
320
323
321
this . incrementOperationCount ( ) ;
You can’t perform that action at this time.
0 commit comments