Skip to content

Commit c14fe1c

Browse files
committed
fix: restore opMsgSupport check
1 parent 44f187c commit c14fe1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmap/connection.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
284284
private get supportsOpMsg(): boolean {
285285
return (
286286
this.description != null &&
287+
// TODO(NODE-6672,NODE-6287): This guard is primarily for maxWireVersion = 0
288+
maxWireVersion(this) >= 6 &&
287289
!this.description.__nodejs_mock_server__
288290
);
289291
}

0 commit comments

Comments
 (0)