summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2018-09-04 16:27:31 -0400
committerTed Tuckman <ted.tuckman@mongodb.com>2018-09-14 13:34:41 -0400
commit8f9cf06033d7b1e0942c76eecfb69b5eee044ed6 (patch)
tree7c1a4fa59521b125f7fe9283b5830943a4ebcc2b /src/mongo/db/clientcursor.h
parent846a6c19839601ce66f27877b348a4a5150a453d (diff)
downloadmongo-8f9cf06033d7b1e0942c76eecfb69b5eee044ed6.tar.gz
SERVER-37001 Add idleCursor to $currentOp
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r--src/mongo/db/clientcursor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index 59af3fc3929..cc698e12bfd 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -271,7 +271,7 @@ private:
}
// The ID of the ClientCursor. A value of 0 is used to mean that no cursor id has been assigned.
- CursorId _cursorid = 0;
+ const CursorId _cursorid = 0;
// Threads may read from this field even if they don't have the cursor pinned, as long as they
// have the correct partition of the CursorManager locked (just like _authenticatedUsers).