[SERVER-32857] Move NamespaceString::escapeDbName out to its only caller Created: 23/Jan/18  Updated: 30/Oct/23  Resolved: 29/Jan/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.2

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Participants:

 Description   

The function NamespaceString::escapeDbName uses a scheme to escape dbName to strings usable as path components. I'm moving this function to src/mongo/db/storage/kv/kv_catalog.cpp, its only caller, because the path name choice is storage specific and shouldn't be useful to other users of the NamespaceString class.



 Comments   
Comment by Githook User [ 23/Jan/18 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-32857 move NamespaceString escapeDbName to its user, add warning
Branch: master
https://github.com/mongodb/mongo/commit/cf5d532cf5975ee30d6a41a5e83c725c87e27d70

Generated at Thu Feb 08 04:31:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.