diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-04-07 16:49:06 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-04-20 14:06:16 -0400 |
commit | 84c4b7d15c6b98c7bb648bc60ade93b6af62b129 (patch) | |
tree | 6a0afa97d6f911c07089ccdf7bc29aa2deaed314 /src/mongo/dbtests/threadedtests.cpp | |
parent | 8e5b16fe0d64d587e0741dab7cabe64b0a818e51 (diff) | |
download | mongo-84c4b7d15c6b98c7bb648bc60ade93b6af62b129.tar.gz |
SERVER-17817 Make ServiceContext create and manage Client objects.
Also, deduplicate Client::* method implementations, guard the identity of the
current CurOp of a Client with the Client's _mutex instead of the mutex guarding
the list of all clients.
Makes the currentClient object private to client.cpp, and all access to the
thread-bound client is now done with haveClient() and cc() free functions in the
mongo namespace.
Removes the vesitgal Client::shutdown() methods.
Diffstat (limited to 'src/mongo/dbtests/threadedtests.cpp')
-rw-r--r-- | src/mongo/dbtests/threadedtests.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/dbtests/threadedtests.cpp b/src/mongo/dbtests/threadedtests.cpp index 4d959ace021..ae94c32fb1d 100644 --- a/src/mongo/dbtests/threadedtests.cpp +++ b/src/mongo/dbtests/threadedtests.cpp @@ -246,7 +246,6 @@ namespace ThreadedTests { } pm.hit(); } - cc().shutdown(); } virtual void validate() { @@ -568,8 +567,6 @@ namespace ThreadedTests { default: ASSERT(false); } - - cc().shutdown(); } }; @@ -736,7 +733,6 @@ namespace ThreadedTests { LOG(Z) << t.millis() << endl; ASSERT( t.millis() > 50 ); } - cc().shutdown(); } }; @@ -800,9 +796,6 @@ namespace ThreadedTests { mongo::unittest::log() << "checked in " << i << " times..." << endl; } - - cc().shutdown(); - } virtual void validate() { |