Skip to content

Commit 2006bc1

Browse files
authored
Replace TODO comment (#1007)
1 parent 4f7125b commit 2006bc1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libmongoc/src/mongoc/mongoc-cursor.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,11 +1764,12 @@ _mongoc_cursor_prepare_getmore_command (mongoc_cursor_t *cursor,
17641764
/* CRUD spec: If a comment is provided, drivers MUST attach this comment
17651765
* to all subsequent getMore commands run on the same cursor for server
17661766
* versions 4.4 and above. For server versions below 4.4 drivers MUST NOT
1767-
* attach a comment to getMore commands. */
1767+
* attach a comment to getMore commands.
1768+
*
1769+
* Since this function has no error reporting, we also no-op if we cannot
1770+
* fetch a stream. */
17681771
server_stream = _mongoc_cursor_fetch_stream (cursor);
17691772

1770-
/* TODO: is no-op on server_stream sensible? This function has no error
1771-
* reporting so it's unclear can be done if we fail to fetch a stream. */
17721773
if (server_stream != NULL &&
17731774
server_stream->sd->max_wire_version >= WIRE_VERSION_4_4) {
17741775
bson_append_value (

0 commit comments

Comments
 (0)