diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2016-11-15 16:17:19 -0500 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-03-15 11:03:44 -0400 |
commit | 584ca76de9ee66b3e11987e640f5317ae40975e4 (patch) | |
tree | db52f1717155c295437f1b4fa41a5db295183669 /src/mongo/db/curop.cpp | |
parent | f05b9437fbdc53deecf55ed3c20e36af3d733953 (diff) | |
download | mongo-584ca76de9ee66b3e11987e640f5317ae40975e4.tar.gz |
SERVER-22541 Manage aggregation cursors on global cursor manager.
Moves registration of aggregation cursors to the global cursor manager.
This simplifies the logic for acquiring locks and resolving view
namespaces within the getMore and killCursors commands.
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index 51016d486ce..2af0907170d 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -266,10 +266,12 @@ void CurOp::ensureStarted() { } } -void CurOp::enter_inlock(const char* ns, int dbProfileLevel) { +void CurOp::enter_inlock(const char* ns, boost::optional<int> dbProfileLevel) { ensureStarted(); _ns = ns; - raiseDbProfileLevel(dbProfileLevel); + if (dbProfileLevel) { + raiseDbProfileLevel(*dbProfileLevel); + } } void CurOp::raiseDbProfileLevel(int dbProfileLevel) { |