diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2019-05-03 16:21:24 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2019-05-09 07:40:56 -0400 |
commit | 2791817876636c0cfd60d867f31c7a83cf3f18c1 (patch) | |
tree | 3aefcb1999cccf4cb53b2401a44857549ba8722a /src/mongo/db/SConscript | |
parent | 1b8a9f5dc5c3314042b55e7415a2a25045b32a94 (diff) | |
download | mongo-2791817876636c0cfd60d867f31c7a83cf3f18c1.tar.gz |
SERVER-37837 Get rid of TransactionReaper (Part 1)
This change gets rid of the TransactionReaper's usage of the
ReplicationCoordinator for checking whether it is primary or not and
makes the LogicalSessionCache joinable on shutdown.
It also removes the TransactionReaper's grouping per-shard optimization
and moves it all under SessionCollectionSharded.
Diffstat (limited to 'src/mongo/db/SConscript')
-rw-r--r-- | src/mongo/db/SConscript | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/src/mongo/db/SConscript b/src/mongo/db/SConscript index 9f4088dba01..93928f28e42 100644 --- a/src/mongo/db/SConscript +++ b/src/mongo/db/SConscript @@ -1501,6 +1501,7 @@ env.Library( source=[ 'logical_session_cache.cpp', env.Idlc('logical_session_cache_stats.idl')[0], + env.Idlc('logical_session_cache.idl')[0], ], LIBDEPS=[ 'logical_session_id', @@ -1517,8 +1518,6 @@ env.Library( 'initialize_operation_session_info.cpp', 'logical_session_cache_impl.cpp', 'logical_session_server_status_section.cpp', - env.Idlc('logical_session_cache_impl.idl')[0], - env.Idlc('commands/end_sessions.idl')[0], ], LIBDEPS=[ 'logical_session_cache', @@ -1546,10 +1545,9 @@ env.Library( ) env.Library( - target='transaction_reaper', + target='transaction_reaper_d', source=[ - 'transaction_reaper.cpp', - env.Idlc('transaction_reaper.idl')[0], + 'transaction_reaper_d.cpp', ], LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/db/repl/repl_coordinator_interface', @@ -1567,7 +1565,7 @@ envWithAsio.CppUnitTest( target='logical_session_cache_test', source=[ 'logical_session_cache_test.cpp', - 'transaction_reaper_test.cpp', + 'transaction_reaper_d_test.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/executor/async_timer_mock', @@ -1584,7 +1582,7 @@ envWithAsio.CppUnitTest( 'service_context_d_test_fixture', 'service_liaison_mock', 'sessions_collection_mock', - 'transaction_reaper', + 'transaction_reaper_d', 'transaction', ], ) @@ -1604,20 +1602,7 @@ envWithAsio.Library( 'sessions_collection_standalone', ], LIBDEPS_PRIVATE=[ - 'transaction_reaper', - ], -) - -envWithAsio.Library( - target='logical_session_cache_factory_mongos', - source=[ - 'logical_session_cache_factory_mongos.cpp', - ], - LIBDEPS=[ - 'logical_session_cache', - 'logical_session_cache_impl', - 'service_liaison_mongos', - 'sessions_collection_sharded', + 'transaction_reaper_d', ], ) |