summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-01-29 13:43:24 -0500
committerSpencer T Brody <spencer@10gen.com>2013-02-07 11:54:15 -0500
commit63e792f9db6ff9b0ea798910301c30aa590b1678 (patch)
tree69f4a413cf1e597aee1485561b2a8f30b0584bc0 /src/mongo/db/clientcursor.h
parent6dec70a4f6d8b968fe69af32ce0efc2198c13eed (diff)
downloadmongo-63e792f9db6ff9b0ea798910301c30aa590b1678.tar.gz
SERVER-8368 Don't check authorization for deleting cursors while holding a mutex that is usually acquired after the DB level lock
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 c50bbd81a37..4ac1fb79612 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -329,7 +329,8 @@ namespace mongo {
*/
static bool erase(CursorId id);
// Same as erase but checks to make sure this thread has read permission on the cursor's
- // namespace. This should be called when receiving killCursors from a client.
+ // namespace. This should be called when receiving killCursors from a client. This should
+ // not be called when ccmutex is held.
static bool eraseIfAuthorized(CursorId id);
/**