summaryrefslogtreecommitdiff
path: root/src/mongo/db/operation_context.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-07-10 17:51:28 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-07-14 09:09:26 -0400
commit3199feb9ab4a94962f7a45ff2262a18fe42ba7b4 (patch)
treec504fa5772bb37c2efed9b25f3e45d6afa73b3af /src/mongo/db/operation_context.h
parent190fa3eaaf0137336491d34914ff5da0ac5add13 (diff)
downloadmongo-3199feb9ab4a94962f7a45ff2262a18fe42ba7b4.tar.gz
SERVER-18084 Make ShardingState a decoration on ServiceContext
Diffstat (limited to 'src/mongo/db/operation_context.h')
-rw-r--r--src/mongo/db/operation_context.h6
1 files changed, 6 insertions, 0 deletions
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;
@@ -137,6 +138,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.
*/
Client* getClient() const;