summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.cpp
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-04-07 01:37:03 -0400
committerWaley Chen <waleycz@gmail.com>2016-04-07 01:37:03 -0400
commit97d7ef4a5120cf7e7d6d912c0f0381663d9d0c3e (patch)
tree79614a25a17d501d8e60588a70688baaa8af366c /src/mongo/db/service_context.cpp
parentff8061cd1d97e99f141b02a7fe36e83f302b909c (diff)
downloadmongo-97d7ef4a5120cf7e7d6d912c0f0381663d9d0c3e.tar.gz
SERVER-23243 Extract time-keeping from Listener
Renaming so we can differentiate between the two types of clocks (fast and precise): 1. setClockSource() -> setPreciseClockSource() 2. _clockSource -> _preciseClockSource
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r--src/mongo/db/service_context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp
index 1a6f3751096..075fafd7360 100644
--- a/src/mongo/db/service_context.cpp
+++ b/src/mongo/db/service_context.cpp
@@ -148,15 +148,15 @@ TickSource* ServiceContext::getTickSource() const {
}
ClockSource* ServiceContext::getPreciseClockSource() const {
- return _clockSource.get();
+ return _preciseClockSource.get();
}
void ServiceContext::setTickSource(std::unique_ptr<TickSource> newSource) {
_tickSource = std::move(newSource);
}
-void ServiceContext::setClockSource(std::unique_ptr<ClockSource> newSource) {
- _clockSource = std::move(newSource);
+void ServiceContext::setPreciseClockSource(std::unique_ptr<ClockSource> newSource) {
+ _preciseClockSource = std::move(newSource);
}
void ServiceContext::ClientDeleter::operator()(Client* client) const {