Skip to content

Commit 8ed1c79

Browse files
committed
CDRIVER-2670 change stream readConcern handling
1 parent b207b41 commit 8ed1c79

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/libmongoc/src/mongoc/mongoc-change-stream.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,13 @@ _make_cursor (mongoc_change_stream_t *stream)
238238

239239
/* even though serverId has already been set, still pass the read prefs.
240240
* 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)) {
241+
if (!mongoc_client_read_command_with_opts (stream->client,
242+
stream->db,
243+
&command,
244+
stream->read_prefs,
245+
&command_opts,
246+
&reply,
247+
&stream->err)) {
248248
bson_destroy (&stream->err_doc);
249249
bson_copy_to (&reply, &stream->err_doc);
250250
bson_destroy (&reply);

0 commit comments

Comments
 (0)