diff options
author | Josef Ahmad <josef.ahmad@mongodb.com> | 2022-08-30 07:49:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-30 09:03:31 +0000 |
commit | 3724e774d67d6ffb3bf1c2f52f7451eac38b5fd9 (patch) | |
tree | 3ef25a75f1aed9274bee74103468e3b4008ae017 /src/mongo/db/namespace_string.h | |
parent | 3f101399b8b165cb1e3a70bd56d9be7978124f51 (diff) | |
download | mongo-3724e774d67d6ffb3bf1c2f52f7451eac38b5fd9.tar.gz |
SERVER-67892 Add _shardsvrCreateGlobalIndex command
Co-authored-by: Yu Jin Kang Park <yujin.kang@mongodb.com>
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r-- | src/mongo/db/namespace_string.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h index 166bdf6dd1b..4d7cbfa6dab 100644 --- a/src/mongo/db/namespace_string.h +++ b/src/mongo/db/namespace_string.h @@ -67,6 +67,9 @@ public: // Namespace for the local database static constexpr StringData kLocalDb = "local"_sd; + // Namespace for the system database + static constexpr StringData kSystemDb = "system"_sd; + // Namespace for the sharding config database static constexpr StringData kConfigDb = "config"_sd; @@ -103,6 +106,10 @@ public: // Prefix for time-series buckets collection. static constexpr StringData kTimeseriesBucketsCollectionPrefix = "system.buckets."_sd; + // Prefix for global index container collections. These collections belong to the system + // database. + static constexpr StringData kGlobalIndexCollectionPrefix = "globalIndexes."_sd; + // Namespace for storing configuration data, which needs to be replicated if the server is // running as a replica set. Documents in this collection should represent some configuration // state of the server, which needs to be recovered/consulted at startup. Each document in this @@ -351,6 +358,11 @@ public: static NamespaceString makeListCollectionsNSS(const DatabaseName& dbName); /** + * Constructs a NamespaceString for the specified global index. + */ + static NamespaceString makeGlobalIndexNSS(const UUID& uuid); + + /** * Constructs the cluster parameters NamespaceString for the specified tenant. The format for * this namespace is "(<tenantId>_)config.clusterParameters". */ |