We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b207b41 commit 8ed1c79Copy full SHA for 8ed1c79
src/libmongoc/src/mongoc/mongoc-change-stream.c
@@ -238,13 +238,13 @@ _make_cursor (mongoc_change_stream_t *stream)
238
239
/* even though serverId has already been set, still pass the read prefs.
240
* they are necessary for OP_MSG if sending to a secondary. */
241
- if (!mongoc_client_command_with_opts (stream->client,
242
- stream->db,
243
- &command,
244
- stream->read_prefs,
245
- &command_opts,
246
- &reply,
247
- &stream->err)) {
+ if (!mongoc_client_read_command_with_opts (stream->client,
+ stream->db,
+ &command,
+ stream->read_prefs,
+ &command_opts,
+ &reply,
+ &stream->err)) {
248
bson_destroy (&stream->err_doc);
249
bson_copy_to (&reply, &stream->err_doc);
250
bson_destroy (&reply);
0 commit comments