[SERVER-18932] LiteParsedQuery should keep a const NamespaceString rather than a std::string for its _ns member Created: 11/Jun/15  Updated: 05/Feb/16  Resolved: 30/Jun/15

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

Type: Improvement Priority: Major - P3
Reporter: David Storch Assignee: Qingyang Chen
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Quint Iteration 6
Participants:

 Description   

This can help avoid re-parsing the namespace string.



 Comments   
Comment by Githook User [ 30/Jun/15 ]

Author:

{u'username': u'coollog', u'name': u'Qingyang Chen', u'email': u'qingyang.chen@10gen.com'}

Message: SERVER-18932 LiteParsedQuery::_ns use const NamespaceString rather than std::string
Branch: master
https://github.com/mongodb/mongo/commit/160001354901fb46fff1e6f1b4bc0a7db0407cf6

Comment by Qingyang Chen [ 29/Jun/15 ]

Changed const NamespaceString& to const NamespaceString because the LPQ can live longer than the namespace passed in.

Generated at Thu Feb 08 03:49:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.