diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2021-12-21 15:04:39 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-12 22:02:38 +0000 |
commit | 42c4a1e81df86cd3b808bb982b62f527c0de71d8 (patch) | |
tree | 0aeadfaa255410c715ba150a0749df24fa7c91c8 /src/mongo/db/namespace_string.h | |
parent | d186067e1d81467e585204087e2757875b7aa8c6 (diff) | |
download | mongo-42c4a1e81df86cd3b808bb982b62f527c0de71d8.tar.gz |
SERVER-62194 Make AutoGetCollection accept multiple namespaces to lock.
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r-- | src/mongo/db/namespace_string.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h index 7f0c6c89ec5..17ea8855bc7 100644 --- a/src/mongo/db/namespace_string.h +++ b/src/mongo/db/namespace_string.h @@ -594,6 +594,12 @@ public: return _nss ? _nss->db() : StringData(_dbname); } + /** + * Returns OK if either the nss is not set or is a valid nss. Otherwise returns an + * InvalidNamespace error. + */ + Status isNssValid() const; + std::string toString() const; void serialize(BSONObjBuilder* builder, StringData fieldName) const; |