summaryrefslogtreecommitdiff
path: root/db/client.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-02-04 15:56:02 -0500
committerEliot Horowitz <eliot@10gen.com>2010-02-04 15:56:02 -0500
commitcf2c6c068e4b8f9c42885985df941cddc55d8f28 (patch)
tree23d58ddbb0d851f7f40a2f19da883a4a5d2cd8b8 /db/client.cpp
parentf5376e1297bd7bf459b24eda08fe5410fdfaf8e6 (diff)
downloadmongo-cf2c6c068e4b8f9c42885985df941cddc55d8f28.tar.gz
fix timing so starts when enter lock
Diffstat (limited to 'db/client.cpp')
-rw-r--r--db/client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/db/client.cpp b/db/client.cpp
index a800e9070fe..c62e5490d0e 100644
--- a/db/client.cpp
+++ b/db/client.cpp
@@ -34,13 +34,12 @@ namespace mongo {
boost::thread_specific_ptr<Client> currentClient;
Client::Client(const char *desc) :
- _curOp(new CurOp()),
_context(0),
- //_database(0), _ns("")/*, _nsstr("")*/
_shutdown(false),
_desc(desc),
_god(0)
{
+ _curOp = new CurOp( this );
boostlock bl(clientsMutex);
clients.insert(this);
}