Only use OP_[INSERT|UPDATE|DELETE] for w=0
@@ -731,25 +731,8 @@ _mongoc_write_command_execute (
offset,
result,
&result->error);
- } else if (server_stream->sd->max_wire_version >= WIRE_VERSION_WRITE_CMD) {
- /*
- * If we have an unacknowledged write and the server supports the legacy
- * opcodes, then submit the legacy opcode so we don't need to wait for
- * a response from the server.
- */
-
- if (!mongoc_write_concern_is_acknowledged (write_concern)) {
- gLegacyWriteOps[command->type](command,
- client,
- server_stream,
- database,
- collection,
- write_concern,
- offset,
- result,
- &result->error);
- EXIT;
- }
+ } else {
+ if (mongoc_write_concern_is_acknowledged (write_concern)) {
_mongoc_write_opquery (command,
client,
server_stream,
@@ -770,6 +753,7 @@ _mongoc_write_command_execute (
result,
&result->error);
}
+ }
EXIT;
}
