Skip to content

Commit 93a9456

Browse files
committed
CDRIVER-880 do not destroy cursor before failing
1 parent 3560d8d commit 93a9456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongoc/mongoc-collection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ mongoc_collection_aggregate (mongoc_collection_t *collection, /* IN */
306306
cursor->limit = 0;
307307

308308
if (! _mongoc_cursor_cursorid_prime (cursor)) {
309-
mongoc_cursor_destroy (cursor);
309+
; /* Do nothing, returning the failed cursor. See CDRIVER-880 */
310310
}
311311
} else {
312312
/* for older versions we get an array that we can create a synthetic

0 commit comments

Comments
 (0)