Skip to content

Commit e634924

Browse files
committed
CDRIVER-880 must still call cursorid_prime()
We require the side effects of the function but ignore its return value.
1 parent 558906f commit e634924

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mongoc/mongoc-collection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ mongoc_collection_aggregate (mongoc_collection_t *collection, /* IN */
307307

308308
/* we always return the cursor, even if it fails; users can detect the failure on performing
309309
* a cursor operation. see CDRIVER-880. */
310+
_mongoc_cursor_cursorid_prime (cursor);
310311
} else {
311312
/* for older versions we get an array that we can create a synthetic
312313
* cursor on top of */

0 commit comments

Comments
 (0)