summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2022-05-24 18:02:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-24 18:57:01 +0000
commitcbf325db8359793c2aed26b6e8f86cf68dc7667d (patch)
treebb2feffba177f112b03ba5d00e81da8acd7dfba0 /src/mongo/db/namespace_string.h
parentd2dde142b2e80f0c224e6df54f63414280b6d807 (diff)
downloadmongo-cbf325db8359793c2aed26b6e8f86cf68dc7667d.tar.gz
SERVER-66024 Include tenantId when constructing namespaces for agg stages
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r--src/mongo/db/namespace_string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h
index 692d768dcca..687fb431bb1 100644
--- a/src/mongo/db/namespace_string.h
+++ b/src/mongo/db/namespace_string.h
@@ -327,7 +327,7 @@ public:
Allow, // Deprecated
};
- boost::optional<TenantId> tenantId() const {
+ const boost::optional<TenantId>& tenantId() const {
return _dbName.tenantId();
}
@@ -336,7 +336,7 @@ public:
return StringData(_dbName.toString());
}
- DatabaseName dbName() const {
+ const DatabaseName& dbName() const {
return _dbName;
}