-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Server Programmability
-
ALL
-
Programmability 2026-05-26
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
As part of StrringData -> std::string_view migration, a string copy was added to the WiredTigerSession::_openCursor implementation in order to create a guaranteed null termination on a std::string_view (formerly StringData) `url` argument.
This turns out to be too hot a path and caused BF-43741.
Interestingly, this `url` argument was a `const std::string&` until relatively recently, changed in SERVER-109350.
We need a null-terminated string in the first place because WT uses const char* strings. This should be investigated or the server will forever have these copies every time it communicates with WT.
- is caused by
-
SERVER-32422 convert StringData to std::string_view
-
- Backlog
-
- is related to
-
SERVER-109350 Take StringData for WiredTigerCursor uri
-
- Closed
-