diff options
Diffstat (limited to 'src/mongo/db/keys_collection_client_sharded.h')
| -rw-r--r-- | src/mongo/db/keys_collection_client_sharded.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/keys_collection_client_sharded.h b/src/mongo/db/keys_collection_client_sharded.h index 2f23a187264..aee2ec01962 100644 --- a/src/mongo/db/keys_collection_client_sharded.h +++ b/src/mongo/db/keys_collection_client_sharded.h @@ -40,8 +40,8 @@ public: KeysCollectionClientSharded(ShardingCatalogClient*); /** - * Returns internal keys for the given purpose and have an expiresAt value greater than - * newerThanThis on the config server. Uses readConcern level majority if possible. + * Returns keys in the config server's admin.system.keys that match the given purpose and have + * an expiresAt value greater than newerThanThis. Uses readConcern level majority if possible. */ StatusWith<std::vector<KeysCollectionDocument>> getNewInternalKeys( OperationContext* opCtx, @@ -50,7 +50,8 @@ public: bool useMajority) override; /** - * Returns all external (i.e. validation-only) keys for the given purpose on the config server. + * Returns validation-only keys copied from other clusters that match the given purpose. + * Currently, a sharded cluster never copies cluster time keys from other clusters. */ StatusWith<std::vector<ExternalKeysCollectionDocument>> getAllExternalKeys( OperationContext* opCtx, StringData purpose) override; |
