summaryrefslogtreecommitdiff
path: root/src/mongo/db/client.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-06-04 18:32:23 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-06-05 14:21:57 -0400
commit6c2a61091396087f85c58bd6298519688a98e5d8 (patch)
tree201822868554014a882b85a86cb3e291ba6acf4a /src/mongo/db/client.h
parent54040db4fa000284cb1148b93e85f81c54ca12d6 (diff)
downloadmongo-6c2a61091396087f85c58bd6298519688a98e5d8.tar.gz
SERVER-18515 Put OperationContext into mongos client request path.
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r--src/mongo/db/client.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h
index 597ed07dd70..251fce3b6d6 100644
--- a/src/mongo/db/client.h
+++ b/src/mongo/db/client.h
@@ -87,6 +87,12 @@ namespace mongo {
void unlock() { _lock.unlock(); }
/**
+ * Makes a new operation context representing an operation on this client. At most
+ * one operation context may be in scope on a client at a time.
+ */
+ ServiceContext::UniqueOperationContext makeOperationContext();
+
+ /**
* Sets the active operation context on this client to "txn", which must be non-NULL.
*
* It is an error to call this method if there is already an operation context on Client.