summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorAndrew Morrow <acm@10gen.com>2013-12-19 14:31:09 -0500
committerAndrew Morrow <acm@10gen.com>2014-01-02 13:00:27 -0500
commit44abf68eeab7e40557fc3e2358030584d34163ac (patch)
treee387ef1fbfa24b211dd199274e97bf2f83754a5d /src/mongo/db/clientcursor.h
parentda176cb44bbfcaff5c1cbd59d8866f3cf7cc791d (diff)
downloadmongo-44abf68eeab7e40557fc3e2358030584d34163ac.tar.gz
SERVER-10159 Be more efficient with runner registration
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r--src/mongo/db/clientcursor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index 3e5f23ad434..02bcc9a1d91 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -265,7 +265,8 @@ namespace mongo {
// runner is deleted, it must be removed from this map.
//
// TODO: This is temporary and as such is highly NOT optimized.
- static set<Runner*> nonCachedRunners;
+ typedef unordered_set<Runner*> RunnerSet;
+ static RunnerSet nonCachedRunners;
// How many cursors have timed out?
static long long numberTimedOut;