diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-09-20 19:11:59 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-09-22 19:30:55 -0400 |
commit | 5749a726b242af9f54834765fbf1c66eeed6dc3a (patch) | |
tree | 3b9fc15987b35447f7346f94a0a5b166ed3bf04a /src/mongo/db/service_context.cpp | |
parent | 4fa949bc7c9b50a8043b76b342ab5e6b172c8af9 (diff) | |
download | mongo-5749a726b242af9f54834765fbf1c66eeed6dc3a.tar.gz |
SERVER-31170 Cleanup bench_run.cpp
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r-- | src/mongo/db/service_context.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp index 2b4eb81c354..48004bf0174 100644 --- a/src/mongo/db/service_context.cpp +++ b/src/mongo/db/service_context.cpp @@ -32,6 +32,7 @@ #include "mongo/bson/bsonobj.h" #include "mongo/db/client.h" +#include "mongo/db/op_observer.h" #include "mongo/db/operation_context.h" #include "mongo/stdx/memory.h" #include "mongo/transport/service_entry_point.h" @@ -188,17 +189,8 @@ transport::ServiceExecutor* ServiceContext::getServiceExecutor() const { return _serviceExecutor.get(); } - -TickSource* ServiceContext::getTickSource() const { - return _tickSource.get(); -} - -ClockSource* ServiceContext::getFastClockSource() const { - return _fastClockSource.get(); -} - -ClockSource* ServiceContext::getPreciseClockSource() const { - return _preciseClockSource.get(); +void ServiceContext::setOpObserver(std::unique_ptr<OpObserver> opObserver) { + _opObserver = std::move(opObserver); } void ServiceContext::setTickSource(std::unique_ptr<TickSource> newSource) { |