diff options
author | Jiawei Yang <jiawei.yang@mongodb.com> | 2023-04-17 21:46:21 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-25 04:55:00 +0000 |
commit | c35bad3b048e8d885bf0b7517aacd2349ea81d14 (patch) | |
tree | 936b34ac089f00a94f407bfab0fe3d64ecc2deb9 /src/mongo/s/query | |
parent | 70d26d65a1e55e4da104f4f150bdc8b6d2ae5b65 (diff) | |
download | mongo-c35bad3b048e8d885bf0b7517aacd2349ea81d14.tar.gz |
SERVER-70127 change system operations to be killable by default
Diffstat (limited to 'src/mongo/s/query')
-rw-r--r-- | src/mongo/s/query/cluster_cursor_cleanup_job.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_cursor_cleanup_job.cpp b/src/mongo/s/query/cluster_cursor_cleanup_job.cpp index 005ad8908b8..f70e14e0dc8 100644 --- a/src/mongo/s/query/cluster_cursor_cleanup_job.cpp +++ b/src/mongo/s/query/cluster_cursor_cleanup_job.cpp @@ -50,6 +50,12 @@ std::string ClusterCursorCleanupJob::name() const { void ClusterCursorCleanupJob::run() { ThreadClient tc(name(), getGlobalServiceContext()); + // TODO(SERVER-74662): Please revisit if this thread could be made killable. + { + stdx::lock_guard<Client> lk(*tc.get()); + tc.get()->setSystemOperationUnkillableByStepdown(lk); + } + auto* const client = Client::getCurrent(); auto* const manager = Grid::get(client->getServiceContext())->getCursorManager(); invariant(manager); |