diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-06-26 10:38:26 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-06-26 16:15:50 -0400 |
commit | 9e93c8d95e7b7fb56f8746fd691b514d7957045f (patch) | |
tree | 55db70a570be4398b0e6a8a508e93e7b5a9823d5 /src/mongo/dbtests/updatetests.cpp | |
parent | 6937b273a7a9db13279161ba3e74259eb89b0d15 (diff) | |
download | mongo-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.cpp | 4 |
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_; }; |