[CDRIVER-2318] _mongoc_read_concern_freeze() assert failure if level is not set Created: 09/Oct/17 Updated: 28/Oct/23 Resolved: 23/Nov/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeremy Mikola | Assignee: | Jeremy Mikola |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
_mongoc_read_concern_freeze() assumes that the level is always set:
This makes it impossible to obtain the BSON for a default read concern (i.e. level is NULL), as is possible with _mongoc_write_concern_freeze(). |
| Comments |
| Comment by Githook User [ 23/Nov/17 ] |
|
Author: {'name': 'Jeremy Mikola', 'username': 'jmikola', 'email': 'jmikola@gmail.com'}Message: This commit also adds missing tests for read concern, based on the |