From 3199feb9ab4a94962f7a45ff2262a18fe42ba7b4 Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Fri, 10 Jul 2015 17:51:28 -0400 Subject: SERVER-18084 Make ShardingState a decoration on ServiceContext --- src/mongo/db/operation_context.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mongo/db/operation_context.h') diff --git a/src/mongo/db/operation_context.h b/src/mongo/db/operation_context.h index 741279f48e0..6dd13e9d095 100644 --- a/src/mongo/db/operation_context.h +++ b/src/mongo/db/operation_context.h @@ -42,6 +42,7 @@ class Client; class CurOp; class Locker; class ProgressMeter; +class ServiceContext; class StringData; class WriteUnitOfWork; @@ -136,6 +137,11 @@ public: */ virtual std::string getNS() const = 0; + /** + * Returns the service context under which this operation context runs. + */ + ServiceContext* getServiceContext() const; + /** * Returns the client under which this context runs. */ -- cgit v1.2.1