summaryrefslogtreecommitdiff
path: root/src/mongo/db/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/SConscript')
-rw-r--r--src/mongo/db/SConscript24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/mongo/db/SConscript b/src/mongo/db/SConscript
index 6aa7c0699d7..6cf5d02acca 100644
--- a/src/mongo/db/SConscript
+++ b/src/mongo/db/SConscript
@@ -973,11 +973,21 @@ env.Library(
'logical_clock.cpp',
],
LIBDEPS=[
+ 'logical_time',
'server_parameters',
'service_context',
+ ],
+)
+
+env.Library(
+ target='logical_time_validator',
+ source=[
+ 'logical_time_validator.cpp',
+ ],
+ LIBDEPS=[
+ 'service_context',
'signed_logical_time',
'time_proof_service',
- '$BUILD_DIR/mongo/util/clock_source_mock'
],
)
@@ -1023,12 +1033,23 @@ env.CppUnitTest(
],
)
+env.CppUnitTest(
+ target='logical_time_validator_test',
+ source=[
+ 'logical_time_validator_test.cpp',
+ ],
+ LIBDEPS=[
+ 'logical_time_validator',
+ ],
+)
+
env.Library(
target= 'logical_time_metadata_hook',
source= [
'logical_time_metadata_hook.cpp',
],
LIBDEPS= [
+ 'logical_time_validator',
'signed_logical_time',
'$BUILD_DIR/mongo/rpc/metadata',
],
@@ -1043,6 +1064,7 @@ env.Library(
'logical_clock',
'signed_logical_time',
'$BUILD_DIR/mongo/s/sharding_mongod_test_fixture',
+ '$BUILD_DIR/mongo/util/clock_source_mock'
],
)