diff options
Diffstat (limited to 'src/mongo/db/tenant_id.h')
-rw-r--r-- | src/mongo/db/tenant_id.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/tenant_id.h b/src/mongo/db/tenant_id.h index 7af08a45d95..dc9b46705c3 100644 --- a/src/mongo/db/tenant_id.h +++ b/src/mongo/db/tenant_id.h @@ -55,12 +55,12 @@ public: */ static const TenantId kSystemTenantId; - explicit TenantId(const OID& oid) : _oid(oid), _idStr(oid.toString()) {} + explicit TenantId(const OID& oid) : _oid(oid) {} TenantId() = delete; - const std::string& toString() const { - return _idStr; + std::string toString() const { + return _oid.toString(); } /** @@ -105,7 +105,6 @@ public: private: OID _oid; - std::string _idStr; }; inline bool operator==(const TenantId& lhs, const TenantId& rhs) { |