diff options
author | Randolph Tan <randolph@10gen.com> | 2017-05-03 13:20:52 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2017-05-04 16:29:38 -0400 |
commit | 2b3d18c8e9871f7cbb89650133ee694bc28636c2 (patch) | |
tree | 0bfed2d46be908e569e724b8cddfbc5f2e1a1b98 /src/mongo/s/sharding_initialization.cpp | |
parent | 67b8dfc2beb283b08f2549df4d99730325ee5de2 (diff) | |
download | mongo-2b3d18c8e9871f7cbb89650133ee694bc28636c2.tar.gz |
Revert "Revert "SERVER-28562 Move LogicalTime HMAC computation outside collection lock""
This reverts commit b7c013aa097b2d999ad3f942cdfce130558ef40f.
Diffstat (limited to 'src/mongo/s/sharding_initialization.cpp')
-rw-r--r-- | src/mongo/s/sharding_initialization.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/s/sharding_initialization.cpp b/src/mongo/s/sharding_initialization.cpp index 30403eb725e..9220176f29e 100644 --- a/src/mongo/s/sharding_initialization.cpp +++ b/src/mongo/s/sharding_initialization.cpp @@ -38,6 +38,7 @@ #include "mongo/client/remote_command_targeter_factory_impl.h" #include "mongo/db/audit.h" #include "mongo/db/logical_clock.h" +#include "mongo/db/logical_time_validator.h" #include "mongo/db/s/sharding_task_executor.h" #include "mongo/db/server_options.h" #include "mongo/db/server_parameters.h" @@ -208,9 +209,6 @@ Status initializeGlobalShardingState(OperationContext* opCtx, std::move(executorPool), networkPtr); - auto timeProofService = stdx::make_unique<TimeProofService>(); - LogicalClock::get(opCtx)->setTimeProofService(std::move(timeProofService)); - // must be started once the grid is initialized grid.shardRegistry()->startup(opCtx); @@ -227,6 +225,9 @@ Status initializeGlobalShardingState(OperationContext* opCtx, } } + LogicalTimeValidator::set(opCtx->getServiceContext(), + stdx::make_unique<LogicalTimeValidator>()); + return Status::OK(); } |