summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2015-06-15 16:07:15 -0400
committerRandolph Tan <randolph@10gen.com>2015-06-17 15:27:45 -0400
commit63b4dff0e2496b610de26d160b9288314795ced0 (patch)
treeb2625d43b5caa3b4b45d3c71cb49d38fbf7f6ee7 /src/mongo/db/service_context.cpp
parente8dd921f644576193ffa6e7df65efbbf4a5a68f1 (diff)
downloadmongo-63b4dff0e2496b610de26d160b9288314795ced0.tar.gz
SERVER-18525 Mock out tick source in replset_dist_lock_manager_test
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r--src/mongo/db/service_context.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp
index feb28ceadb6..745cb2f9d76 100644
--- a/src/mongo/db/service_context.cpp
+++ b/src/mongo/db/service_context.cpp
@@ -142,6 +142,14 @@ namespace mongo {
return UniqueClient(client.release());
}
+ TickSource* ServiceContext::getTickSource() const {
+ return _tickSource.get();
+ }
+
+ void ServiceContext::setTickSource(std::unique_ptr<TickSource> newSource) {
+ _tickSource = std::move(newSource);
+ }
+
void ServiceContext::ClientDeleter::operator()(Client* client) const {
ServiceContext* const service = client->getServiceContext();
{