summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/namespace_string.cpp')
-rw-r--r--src/mongo/db/namespace_string.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.cpp b/src/mongo/db/namespace_string.cpp
index dab24a3c482..0f0f228d6c0 100644
--- a/src/mongo/db/namespace_string.cpp
+++ b/src/mongo/db/namespace_string.cpp
@@ -43,6 +43,7 @@ namespace mongo {
namespace {
constexpr auto listCollectionsCursorCol = "$cmd.listCollections"_sd;
+constexpr auto bulkWriteCursorCol = "$cmd.bulkWrite"_sd;
constexpr auto collectionlessAggregateCursorCol = "$cmd.aggregate"_sd;
constexpr auto dropPendingNSPrefix = "system.drop."_sd;
@@ -321,6 +322,10 @@ bool NamespaceString::mustBeAppliedInOwnOplogBatch() const {
_ns == kConfigsvrShardsNamespace.ns();
}
+NamespaceString NamespaceString::makeBulkWriteNSS() {
+ return NamespaceString(kAdminDb, bulkWriteCursorCol);
+}
+
NamespaceString NamespaceString::makeClusterParametersNSS(
const boost::optional<TenantId>& tenantId) {
return tenantId ? NamespaceString(tenantId, kConfigDb, "clusterParameters")