diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2021-01-11 05:14:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-15 22:47:49 +0000 |
commit | ae738118f9f8f6ef93bc4482489cab9955a2bcb1 (patch) | |
tree | 3b6b21db4f7766de948666b6b5b188890f58dd35 /src/mongo/db/namespace_string.cpp | |
parent | f99876a23cd41e89331a2fb2a3c3d799e2b514a7 (diff) | |
download | mongo-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.cpp | 6 |
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; |