[CDRIVER-926] mongoc_collection_aggregate can return NULL Created: 09/Oct/15 Updated: 24/Nov/15 Resolved: 24/Nov/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.2.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Hannes Magnusson | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
In However, mongoc_collection_aggregate() can return a NULL when the server preselection fails, and no error will be reported at all as we discard of the error from the preselect: https://github.com/mongodb/mongo-c-driver/blob/master/src/mongoc/mongoc-collection.c#L243-L251 |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 24/Nov/15 ] |
|
Fixed along with |