diff options
author | Andrew Morrow <acm@10gen.com> | 2013-12-19 14:31:09 -0500 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2014-01-02 13:00:27 -0500 |
commit | 44abf68eeab7e40557fc3e2358030584d34163ac (patch) | |
tree | e387ef1fbfa24b211dd199274e97bf2f83754a5d /src/mongo/db/clientcursor.h | |
parent | da176cb44bbfcaff5c1cbd59d8866f3cf7cc791d (diff) | |
download | mongo-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.h | 3 |
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; |