Skip to content

Commit 1a97d00

Browse files
CDRIVER-4199: Add the "comment" field to getMore commands (#1014)
This adds a missing "comment" value to getMore for changestreams. This fixes test failures in the changestreams tests, which are not yet enabled in this branch but has been manually validated locally.
1 parent a7cc359 commit 1a97d00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ _make_cursor (mongoc_change_stream_t *stream)
247247

248248
if (stream->opts.comment.value_type != BSON_TYPE_EOD) {
249249
bson_append_value (&command_opts, "comment", 7, &stream->opts.comment);
250+
bson_append_value (&getmore_opts, "comment", 7, &stream->opts.comment);
250251
}
251252

252253
if (bson_iter_init_find (&iter, &command_opts, "sessionId")) {

0 commit comments

Comments
 (0)