summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2017-05-25 20:36:12 +0100
committerBernard Gorman <bernard.gorman@gmail.com>2017-05-26 08:05:22 +0100
commit58486605c09672b3bfce8608dca403a145413bba (patch)
tree62f44cbd43515b591e6af6347c0a75eb5c6ab5fb /src/mongo/db/namespace_string.h
parent4b88bf79dc47cbdfd74a11605cc5ee1c61e379f8 (diff)
downloadmongo-58486605c09672b3bfce8608dca403a145413bba.tar.gz
SERVER-19318 Add $currentOp aggregation stage for mongoD
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r--src/mongo/db/namespace_string.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h
index deaf6ba2111..f49054c57ef 100644
--- a/src/mongo/db/namespace_string.h
+++ b/src/mongo/db/namespace_string.h
@@ -96,6 +96,12 @@ public:
NamespaceString(StringData dbName, StringData collectionName);
/**
+ * Constructs the namespace '<dbName>.$cmd.aggregate', which we use as the namespace for
+ * aggregation commands with the format {aggregate: 1}.
+ */
+ static NamespaceString makeCollectionlessAggregateNSS(StringData dbName);
+
+ /**
* Constructs a NamespaceString representing a listCollections namespace. The format for this
* namespace is "<dbName>.$cmd.listCollections".
*/
@@ -213,6 +219,7 @@ public:
return coll().startsWith("$cmd."_sd);
}
+ bool isCollectionlessAggregateNS() const;
bool isListCollectionsCursorNS() const;
bool isListIndexesCursorNS() const;