File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ export class DeleteOperation extends CommandOperation<Document> {
85
85
const unacknowledgedWrite = this . writeConcern && this . writeConcern . w === 0 ;
86
86
if ( unacknowledgedWrite ) {
87
87
if ( this . statements . find ( ( o : Document ) => o . hint ) ) {
88
- callback ( new MongoCompatibilityError ( `Servers < 3.4 do not support hint on delete` ) ) ;
88
+ // TODO(NODE-3541): fix error for hint with unacknowledged writes
89
+ callback ( new MongoCompatibilityError ( `hint is not supported with unacknowledged writes` ) ) ;
89
90
return ;
90
91
}
91
92
}
Original file line number Diff line number Diff line change @@ -110,7 +110,8 @@ export class UpdateOperation extends CommandOperation<Document> {
110
110
const unacknowledgedWrite = this . writeConcern && this . writeConcern . w === 0 ;
111
111
if ( unacknowledgedWrite ) {
112
112
if ( this . statements . find ( ( o : Document ) => o . hint ) ) {
113
- callback ( new MongoCompatibilityError ( `Servers < 3.4 do not support hint on update` ) ) ;
113
+ // TODO(NODE-3541): fix error for hint with unacknowledged writes
114
+ callback ( new MongoCompatibilityError ( `hint is not supported with unacknowledged writes` ) ) ;
114
115
return ;
115
116
}
116
117
}
You can’t perform that action at this time.
0 commit comments