-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.1.1
-
Component/s: Implementation
-
None
When I acquire a client from a pool and manually modify the write concern at client level (client::write_concern(wc)), the modified client is released to the pool.
Later on, if I acquire a new client from this pool, I may end-up with a client with the modified write concern, which does not correspond to the one the pool has been created with.
With current behavior, application code seems to be responsible to reset the client write concern to an appropriate value before it is released to the pool.
The pool should take care of resetting the write concern to an appropriate value or the write_concern of a client acquired from the pool should be read-only.
- related to
-
CXX-1086 Deprecate non-const methods on mongocxx::client
- Closed
-
CDRIVER-938 Prohibit setting options on pooled clients
- Backlog