summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/SConscript
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2019-09-27 16:54:44 +0000
committerevergreen <evergreen@mongodb.com>2019-09-27 16:54:44 +0000
commit2e165002e4b434e5713d8b7dff8d46151edff85d (patch)
treef942643289c9e7d2d7f5431f3f8da91317110304 /src/mongo/db/s/SConscript
parent5c5088b0a184ed6993735ffdb37de5025b57a456 (diff)
downloadmongo-2e165002e4b434e5713d8b7dff8d46151edff85d.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. (cherry picked from commit 2791817876636c0cfd60d867f31c7a83cf3f18c1) Part 2: This change folds the TransactionReaper's single function to be part of the SessionCatalogs on MongoD and MongoS, which are the subsystems responsible for managing transactions. (cherry picked from commit 94f269a1c6053824c4dabc50e8c9219b80a6a1b5) (cherry picked from commit 7e6a80789cd74f9b533065f57afb5c9221eea1e7)
Diffstat (limited to 'src/mongo/db/s/SConscript')
-rw-r--r--src/mongo/db/s/SConscript36
1 files changed, 8 insertions, 28 deletions
diff --git a/src/mongo/db/s/SConscript b/src/mongo/db/s/SConscript
index dc56763d8a3..a1e9bfcc5f9 100644
--- a/src/mongo/db/s/SConscript
+++ b/src/mongo/db/s/SConscript
@@ -218,7 +218,7 @@ env.Library(
)
env.Library(
- target='commands_db_s',
+ target='sharding_commands_d',
source=[
'check_sharding_index_command.cpp',
'cleanup_orphaned_cmd.cpp',
@@ -307,20 +307,25 @@ env.CppUnitTest(
'migration_chunk_cloner_source_legacy_test.cpp',
'migration_destination_manager_test.cpp',
'namespace_metadata_change_notifications_test.cpp',
+ 'session_catalog_migration_destination_test.cpp',
+ 'session_catalog_migration_source_test.cpp',
'shard_metadata_util_test.cpp',
'shard_server_catalog_cache_loader_test.cpp',
'sharding_initialization_mongod_test.cpp',
'sharding_initialization_op_observer_test.cpp',
'split_vector_test.cpp',
],
- LIBDEPS=[
- 'sharding_runtime_d',
+ LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/db/auth/authmocks',
+ '$BUILD_DIR/mongo/db/logical_session_cache_impl',
+ '$BUILD_DIR/mongo/db/ops/write_ops_exec',
'$BUILD_DIR/mongo/db/query/query_request',
+ '$BUILD_DIR/mongo/db/repl/mock_repl_coord_server_fixture',
'$BUILD_DIR/mongo/s/catalog/dist_lock_manager_mock',
'$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_impl',
'$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_mock',
'$BUILD_DIR/mongo/s/shard_server_test_fixture',
+ 'sharding_runtime_d',
],
)
@@ -345,31 +350,6 @@ env.CppUnitTest(
)
env.CppUnitTest(
- target='session_catalog_migration_source_test',
- source=[
- 'session_catalog_migration_source_test.cpp',
- ],
- LIBDEPS=[
- '$BUILD_DIR/mongo/db/auth/authmocks',
- '$BUILD_DIR/mongo/db/repl/mock_repl_coord_server_fixture',
- ]
-)
-
-env.CppUnitTest(
- target='session_catalog_migration_destination_test',
- source=[
- 'session_catalog_migration_destination_test.cpp',
- ],
- LIBDEPS=[
- '$BUILD_DIR/mongo/db/auth/authmocks',
- '$BUILD_DIR/mongo/db/ops/write_ops_exec',
- '$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_mock',
- '$BUILD_DIR/mongo/s/shard_server_test_fixture',
- 'sharding_runtime_d',
- ]
-)
-
-env.CppUnitTest(
target='sharding_catalog_manager_test',
source=[
'config/initial_split_policy_test.cpp',