diff options
author | jannaerin <golden.janna@gmail.com> | 2022-05-24 18:02:04 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-24 18:57:01 +0000 |
commit | cbf325db8359793c2aed26b6e8f86cf68dc7667d (patch) | |
tree | bb2feffba177f112b03ba5d00e81da8acd7dfba0 /src/mongo/db/namespace_string.h | |
parent | d2dde142b2e80f0c224e6df54f63414280b6d807 (diff) | |
download | mongo-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.h | 4 |
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; } |