summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
authorFernando Lisboa <fernando.lisboa@mongodb.com>2022-06-17 21:37:39 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-17 23:50:29 +0000
commit0d5aceed10e616e21d37b1e8993797e2f55cd741 (patch)
treec1dff43741e65dcf83a3469a2448e7728b7bd581 /src/mongo/db/namespace_string.h
parent81f529ba21e81b9956f744d1270c18fd6a74889d (diff)
downloadmongo-0d5aceed10e616e21d37b1e8993797e2f55cd741.tar.gz
SERVER-65982 Change NamespaceStringOrUUID::dbnameWithTenant() to dbName()
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r--src/mongo/db/namespace_string.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h
index c633ecab4fa..91dbcd144b8 100644
--- a/src/mongo/db/namespace_string.h
+++ b/src/mongo/db/namespace_string.h
@@ -720,12 +720,14 @@ public:
/**
* Returns database name if this object was initialized with a UUID.
+ *
+ * TODO SERVER-66887 remove this function for better clarity once call sites have been changed
*/
std::string dbname() const {
return _dbname ? _dbname->db() : "";
}
- const boost::optional<DatabaseName>& dbnameWithTenant() const {
+ const boost::optional<DatabaseName>& dbName() const {
return _dbname;
}