Skip to content

Commit 14c9bdf

Browse files
committed
CDRIVER-880 style fix
1 parent 93a9456 commit 14c9bdf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/mongoc/mongoc-collection.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,8 @@ mongoc_collection_aggregate (mongoc_collection_t *collection, /* IN */
305305
_mongoc_cursor_cursorid_init(cursor);
306306
cursor->limit = 0;
307307

308-
if (! _mongoc_cursor_cursorid_prime (cursor)) {
309-
; /* Do nothing, returning the failed cursor. See CDRIVER-880 */
310-
}
308+
/* we always return the cursor, even if it fails; users can detect the failure on performing
309+
* a cursor operation. see CDRIVER-880. */
311310
} else {
312311
/* for older versions we get an array that we can create a synthetic
313312
* cursor on top of */

0 commit comments

Comments
 (0)