[CDRIVER-3878] reset client options when returning to a mongoc_client_pool Created: 26/Jan/21 Updated: 26/Jan/21 Resolved: 26/Jan/21 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Samantha Ritter (Inactive) | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
users may set certain options on a client, like write concern, that are at odds with the settings on their parent mongoc_client_pool. When these clients get pushed back into the pool, we don't make any effort to "reset" the client so that its options match the pool's options again. It's possible users can pop a "dirty" client with unexpected option settings. |