-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: 7.0.6, 8.0.0-rc0, 7.3.0-rc4
-
Component/s: None
-
None
-
Catalog and Routing
-
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
-