-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
Fully Compatible
-
CAR Team 2024-09-30
-
2
In create_collection_coordinator.cpp we are calling many times the getNewSession() method directly as the parameter of other calls (like here).
This is quite dangerous because getNewSession() updates the attribute _doc, so anyone using a reference or pointer to `_doc` within the same call will get an undefined behavior.
Here is an example that can end up badly:
myFunc(_doc.getNss(), getNewSession(opCtx))
- is caused by
-
SERVER-74488 Make NamespaceString::toString() private
- Closed