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 17:45:09 +0000 |
commit | 77e9ff7fd5e822ed2c560db2f601648a6dd58abf (patch) | |
tree | 48994c75b0b14e9b74cc6af460a1dab028ef459d /src/mongo/db/mongod_main.cpp | |
parent | 8ae59d394e6e562415ba62ecc58e66f69ee22552 (diff) | |
download | mongo-77e9ff7fd5e822ed2c560db2f601648a6dd58abf.tar.gz |
SERVER-66973 Eagerly reap config.transactions entries for retryable sessions
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 7f0beb2fd5c..ccb5ce1a404 100644 --- a/src/mongo/db/mongod_main.cpp +++ b/src/mongo/db/mongod_main.cpp @@ -90,6 +90,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" @@ -157,6 +158,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" @@ -1532,6 +1534,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(); |