summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-02-03 10:31:45 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-02-06 07:33:21 -0500
commit1f376bcf8824df1a6122c297d5205daa1e6ff8a7 (patch)
tree2d8a6c5d21a042e47ed702e5426851a54e314331 /src/mongo/db/namespace_string.h
parent0851ee0434ba5352561a204f368a062d660c8882 (diff)
downloadmongo-1f376bcf8824df1a6122c297d5205daa1e6ff8a7.tar.gz
SERVER-32367 Make AutoGetCollection throw if UUID cannot be resolved
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r--src/mongo/db/namespace_string.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h
index 13b13dda0f8..eb19a5dfb04 100644
--- a/src/mongo/db/namespace_string.h
+++ b/src/mongo/db/namespace_string.h
@@ -457,6 +457,8 @@ public:
NamespaceStringOrUUID(NamespaceString nss) : _nss(std::move(nss)) {}
NamespaceStringOrUUID(StringData dbName, UUID uuid) : _dbAndUUID({dbName.toString(), uuid}) {}
+ StringData db() const;
+
const boost::optional<NamespaceString>& nss() const {
return _nss;
}