diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-10-17 23:07:26 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-10-17 23:07:26 -0400 |
commit | a8bc6f958490799c9677f67a8f7a5262f52a41b0 (patch) | |
tree | fd7e3a10b0516a83dd1ce5398e4463a06c04eb92 /db/clientcursor.h | |
parent | 0b9aa268ba6e1bf3fb98d979e29d4be19cae5381 (diff) | |
download | mongo-a8bc6f958490799c9677f67a8f7a5262f52a41b0.tar.gz |
store query in ClientCursor so can see query on slow getMore queries
Diffstat (limited to 'db/clientcursor.h')
-rw-r--r-- | db/clientcursor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/clientcursor.h b/db/clientcursor.h index ee725788696..79907ea2424 100644 --- a/db/clientcursor.h +++ b/db/clientcursor.h @@ -51,7 +51,7 @@ namespace mongo { DiskLoc _lastLoc; // use getter and setter not this (important) unsigned _idleAgeMillis; // how long has the cursor been around, relative to server idle time bool _liveForever; // if true, never time out cursor - + static CCById clientCursorsById; static CCByLoc byLoc; static boost::recursive_mutex ccmutex; // must use this for all statics above! @@ -64,6 +64,7 @@ namespace mongo { auto_ptr<KeyValJSMatcher> matcher; auto_ptr<Cursor> c; int pos; // # objects into the cursor so far + BSONObj query; ClientCursor() : _idleAgeMillis(0), _liveForever(false), pos(0) { recursive_boostlock lock(ccmutex); |