[SERVER-76972] NamespaceString(DatabaseName dbName) should create an object equals NamespaceString(dbName, "") Created: 09/May/23 Updated: 27/Oct/23 Resolved: 10/May/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Sophia Tan | Assignee: | [DO NOT USE] Backlog - Server Serverless (Inactive) |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Serverless
|
| Participants: | |
| Story Points: | 1 |
| Description |
|
Today, the `NamespaceString(DatabaseName dbName) ` create a NSS object without dot in _data. `NamespaceString(DatabaseName dbName, String collName)` create a NSS object which always include a dot in data even `collName` is empty. In this ticket, we should make `NamespaceString(DatabaseName dbName) ` create a NSS object which equals to `NamespaceString(dbName, "")`. |
| Comments |
| Comment by Sophia Tan [ 10/May/23 ] |
|
NamespaceString(DatabaseName dbName) is actually different with NamespaceString(dbName, ""). In old version code before NTDI, we have a NamespaceString(StringData ns) and a NamespaceString(StringData dbName, StringData collectionName). When collection name is empty, these two functions create different object. Today, NamespaceString(dbName) equals to old version NamespaceString(StringData ns) when ns has no collection name. And, NamespaceString(dbName, "") equals to old version NamespaceString(StringData dbName, StringData collectionName) when collectionName is empty. So, they should also create different object as old version API do. They work as designed. Close this issue. |