summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.cpp
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2021-01-11 05:14:06 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-01-15 22:47:49 +0000
commitae738118f9f8f6ef93bc4482489cab9955a2bcb1 (patch)
tree3b6b21db4f7766de948666b6b5b188890f58dd35 /src/mongo/db/namespace_string.cpp
parentf99876a23cd41e89331a2fb2a3c3d799e2b514a7 (diff)
downloadmongo-ae738118f9f8f6ef93bc4482489cab9955a2bcb1.tar.gz
SERVER-53403 Support validating cluster times with keys from external_validation_keys
Diffstat (limited to 'src/mongo/db/namespace_string.cpp')
-rw-r--r--src/mongo/db/namespace_string.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.cpp b/src/mongo/db/namespace_string.cpp
index d25886e4904..eea72c9e3f8 100644
--- a/src/mongo/db/namespace_string.cpp
+++ b/src/mongo/db/namespace_string.cpp
@@ -132,6 +132,12 @@ bool NamespaceString::isLegalClientSystemNS() const {
return true;
if (coll() == "system.backup_users")
return true;
+ if (coll() == kExternalKeysCollectionNamespace.coll()) {
+ // TODO (SERVER-53404): This was added to allow client in an integration test to
+ // manually insert the key document into this system collection. Remove this when the
+ // tenant migration donor does the copying by itself.
+ return true;
+ }
} else if (db() == kConfigDb) {
if (coll() == "system.sessions")
return true;