diff options
Diffstat (limited to 'src/mongo/db/keys_collection_client_direct.cpp')
-rw-r--r-- | src/mongo/db/keys_collection_client_direct.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/keys_collection_client_direct.cpp b/src/mongo/db/keys_collection_client_direct.cpp index af1e90d57a5..69f6fc471c0 100644 --- a/src/mongo/db/keys_collection_client_direct.cpp +++ b/src/mongo/db/keys_collection_client_direct.cpp @@ -82,16 +82,16 @@ StatusWith<std::vector<KeysCollectionDocument>> KeysCollectionClientDirect::getN } StatusWith<std::vector<ExternalKeysCollectionDocument>> -KeysCollectionClientDirect::getNewExternalKeys(OperationContext* opCtx, - StringData purpose, - const LogicalTime& newerThanThis, - bool useMajority) { +KeysCollectionClientDirect::getAllExternalKeys(OperationContext* opCtx, StringData purpose) { return _getNewKeys<ExternalKeysCollectionDocument>( opCtx, NamespaceString::kExternalKeysCollectionNamespace, purpose, - newerThanThis, - useMajority); + LogicalTime(), + // It is safe to read external keys with local read concern because they are only used to + // validate incoming signatures, not to sign them. If a cached key is rolled back, it will + // eventually be reaped from the cache. + false /* useMajority */); } template <typename KeyDocumentType> |