diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2022-09-13 09:23:07 +0200 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-15 08:12:08 +0000 |
commit | fa920335ed6a41efa417e5c41940cd28a4a36829 (patch) | |
tree | eb7454e4661ce8e3d38c08a12b2609eea926edbb /src/mongo/db/cursor_manager.cpp | |
parent | d8901a2835d3f464d394631d85dc7aa9493fc095 (diff) | |
download | mongo-fa920335ed6a41efa417e5c41940cd28a4a36829.tar.gz |
SERVER-69523 Only allow METADATA and MUTEX lock acqisitions with OpContext
This makes mutex acquisitions both interruptible and allows the lock
manager to be able to inspect the lock acqusitions so far.
Diffstat (limited to 'src/mongo/db/cursor_manager.cpp')
-rw-r--r-- | src/mongo/db/cursor_manager.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/cursor_manager.cpp b/src/mongo/db/cursor_manager.cpp index df6e8ef8cbd..2ed5da7e80b 100644 --- a/src/mongo/db/cursor_manager.cpp +++ b/src/mongo/db/cursor_manager.cpp @@ -27,19 +27,14 @@ * it in the license file. */ - #include "mongo/db/cursor_manager.h" -#include <memory> - #include "mongo/base/data_cursor.h" #include "mongo/base/init.h" #include "mongo/db/allocate_cursor_id.h" #include "mongo/db/audit.h" #include "mongo/db/auth/authorization_checks.h" #include "mongo/db/auth/authorization_session.h" -#include "mongo/db/catalog/collection.h" -#include "mongo/db/catalog/database.h" #include "mongo/db/client.h" #include "mongo/db/curop.h" #include "mongo/db/cursor_server_params.h" @@ -57,7 +52,6 @@ #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kQuery - namespace mongo { static CounterMetric cursorStatsLifespanLessThan1Second{"cursor.lifespan.lessThan1Second"}; |