summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-09-20 19:11:59 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-09-22 19:30:55 -0400
commit5749a726b242af9f54834765fbf1c66eeed6dc3a (patch)
tree3b9fc15987b35447f7346f94a0a5b166ed3bf04a /src/mongo/db/service_context.cpp
parent4fa949bc7c9b50a8043b76b342ab5e6b172c8af9 (diff)
downloadmongo-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.cpp14
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) {