summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/tenant_migration_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/tenant_migration_util.cpp')
-rw-r--r--src/mongo/db/repl/tenant_migration_util.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mongo/db/repl/tenant_migration_util.cpp b/src/mongo/db/repl/tenant_migration_util.cpp
index a66f88b318f..247da7fdc89 100644
--- a/src/mongo/db/repl/tenant_migration_util.cpp
+++ b/src/mongo/db/repl/tenant_migration_util.cpp
@@ -58,9 +58,8 @@ ExternalKeysCollectionDocument makeExternalClusterTimeKeyDoc(ServiceContext* ser
return externalKeyDoc;
}
-void storeExternalClusterTimeKeyDocsAndRefreshCache(
- std::shared_ptr<executor::ScopedTaskExecutor> executor,
- std::vector<ExternalKeysCollectionDocument> keyDocs) {
+void storeExternalClusterTimeKeyDocs(std::shared_ptr<executor::ScopedTaskExecutor> executor,
+ std::vector<ExternalKeysCollectionDocument> keyDocs) {
auto opCtxHolder = cc().makeOperationContext();
auto opCtx = opCtxHolder.get();
auto nss = NamespaceString::kExternalKeysCollectionNamespace;
@@ -82,14 +81,6 @@ void storeExternalClusterTimeKeyDocsAndRefreshCache(
/*fromMigrate=*/false);
});
}
-
- auto validator = LogicalTimeValidator::get(opCtx);
- if (validator) {
- // Refresh the keys cache to avoid validation errors for external cluster times with
- // a keyId that matches the keyId of an internal key since the LogicalTimeValidator
- // only refreshes the cache when it cannot find a matching internal key.
- validator->refreshKeyManagerCache(opCtx);
- }
}
void createRetryableWritesView(OperationContext* opCtx, Database* db) {