diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-04-18 18:05:25 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-05-26 10:20:26 -0400 |
commit | fe2046a0eb715cec4d978454458f79b7588ee7a7 (patch) | |
tree | 50311590ddec96f9487dc4069891700cb4b9d23c /src/mongo/db/clientcursor.h | |
parent | 58486605c09672b3bfce8608dca403a145413bba (diff) | |
download | mongo-fe2046a0eb715cec4d978454458f79b7588ee7a7.tar.gz |
SERVER-21754 Partition CursorManager's structures
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r-- | src/mongo/db/clientcursor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h index 9aa3398d330..d2f216b01e1 100644 --- a/src/mongo/db/clientcursor.h +++ b/src/mongo/db/clientcursor.h @@ -196,6 +196,10 @@ public: */ static long long totalOpen(); + friend std::size_t partitionOf(const ClientCursor* cursor) { + return cursor->cursorid(); + } + private: friend class CursorManager; friend class ClientCursorPin; |