summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/updatetests.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-06-26 10:38:26 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-06-26 16:15:50 -0400
commit9e93c8d95e7b7fb56f8746fd691b514d7957045f (patch)
tree55db70a570be4398b0e6a8a508e93e7b5a9823d5 /src/mongo/dbtests/updatetests.cpp
parent6937b273a7a9db13279161ba3e74259eb89b0d15 (diff)
downloadmongo-9e93c8d95e7b7fb56f8746fd691b514d7957045f.tar.gz
SERVER-13961 Add capability to register and discover OperationContexts
This replaces the need to iterate through the list of registered Clients for diagnostics/reporting purposes. Also moves some of the per-client information to be under OperationContext. This is in preparation for removing LockState from TLS.
Diffstat (limited to 'src/mongo/dbtests/updatetests.cpp')
-rw-r--r--src/mongo/dbtests/updatetests.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/dbtests/updatetests.cpp b/src/mongo/dbtests/updatetests.cpp
index f486dd0ce3a..e048ebc2d9f 100644
--- a/src/mongo/dbtests/updatetests.cpp
+++ b/src/mongo/dbtests/updatetests.cpp
@@ -61,7 +61,9 @@ namespace UpdateTests {
bool error() {
return !client_.getPrevError().getField( "err" ).isNull();
}
- DBDirectClient &client() { return client_; }
+
+ DBDirectClient& client() { return client_; }
+
private:
DBDirectClient client_;
};