diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2022-06-07 17:12:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-07 22:27:58 +0000 |
commit | 266864d409101588abcad8ebe75dec0cd60bf11c (patch) | |
tree | e068c9c340263de8fa4d036529975e5a0a7c4701 /src/mongo/db/mongod_main.cpp | |
parent | 90cccd16effc6e4056fd9d297ffc1e6d60b9d01c (diff) | |
download | mongo-266864d409101588abcad8ebe75dec0cd60bf11c.tar.gz |
SERVER-66973 Eagerly reap config.transactions entries for retryable sessionsr6.0.0-rc9
(cherry picked from commit 77e9ff7fd5e822ed2c560db2f601648a6dd58abf)
Diffstat (limited to 'src/mongo/db/mongod_main.cpp')
-rw-r--r-- | src/mongo/db/mongod_main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/mongod_main.cpp b/src/mongo/db/mongod_main.cpp index a3a56f705f6..52a9c4651d6 100644 --- a/src/mongo/db/mongod_main.cpp +++ b/src/mongo/db/mongod_main.cpp @@ -91,6 +91,7 @@ #include "mongo/db/index_names.h" #include "mongo/db/initialize_server_global_state.h" #include "mongo/db/initialize_snmp.h" +#include "mongo/db/internal_transactions_reap_service.h" #include "mongo/db/introspect.h" #include "mongo/db/json.h" #include "mongo/db/keys_collection_client_direct.h" @@ -158,6 +159,7 @@ #include "mongo/db/serverless/shard_split_donor_service.h" #include "mongo/db/service_context.h" #include "mongo/db/service_entry_point_mongod.h" +#include "mongo/db/session_catalog.h" #include "mongo/db/session_killer.h" #include "mongo/db/startup_recovery.h" #include "mongo/db/startup_warnings_mongod.h" @@ -1514,6 +1516,8 @@ int mongod_main(int argc, char* argv[]) { setUpReplication(service); setUpObservers(service); service->setServiceEntryPoint(std::make_unique<ServiceEntryPointMongod>(service)); + SessionCatalog::get(service)->setOnEagerlyReapedSessionsFn( + InternalTransactionsReapService::onEagerlyReapedSessions); ErrorExtraInfo::invariantHaveAllParsers(); |