diff options
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r-- | src/mongo/db/namespace_string.h | 4 |
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; } |