summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/tenant_migration_util.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2021-02-02 23:25:27 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-06 00:05:34 +0000
commit4b426256d891781e14dda37646fb1aad51e6bd0c (patch)
treeed989ca9cc4384d6af920f9cd26f791a31bfb869 /src/mongo/db/repl/tenant_migration_util.h
parent0b0acab69c72b76b671ab914ac24c15dbad53680 (diff)
downloadmongo-4b426256d891781e14dda37646fb1aad51e6bd0c.tar.gz
SERVER-54204 Load external validation keys with local read concern
Diffstat (limited to 'src/mongo/db/repl/tenant_migration_util.h')
-rw-r--r--src/mongo/db/repl/tenant_migration_util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/tenant_migration_util.h b/src/mongo/db/repl/tenant_migration_util.h
index ddc26e5f7bf..e76e8464ad0 100644
--- a/src/mongo/db/repl/tenant_migration_util.h
+++ b/src/mongo/db/repl/tenant_migration_util.h
@@ -139,10 +139,10 @@ ExternalKeysCollectionDocument makeExternalClusterTimeKeyDoc(ServiceContext* ser
/*
* For each given ExternalKeysCollectionDocument, inserts it if there is not an existing document in
* admin.system.external_validation_keys for it with the same keyId and replicaSetName. Otherwise,
- * updates the ttlExpiresAt of the existing document if it is less than the new ttlExpiresAt. Waits
- * for the writes to be majority-committed, and refreshes the logical validator's cache.
+ * updates the ttlExpiresAt of the existing document if it is less than the new ttlExpiresAt.
+ * Refreshes the logical validator's cache before returning.
*/
-ExecutorFuture<void> storeExternalClusterTimeKeyDocsAndRefreshCache(
+void storeExternalClusterTimeKeyDocsAndRefreshCache(
std::shared_ptr<executor::ScopedTaskExecutor> executor,
std::vector<ExternalKeysCollectionDocument> keyDocs,
const CancelationToken& token);