summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/d_concurrency_bm.cpp
diff options
context:
space:
mode:
authorJiawei Yang <jiawei.yang@mongodb.com>2023-03-01 23:17:01 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-13 22:47:43 +0000
commit9f2867c9da77e2d64df3852f7d4578f10e6f0817 (patch)
tree3c7ec7b6871d181abb49663e80a6ce97e248c383 /src/mongo/db/concurrency/d_concurrency_bm.cpp
parenta8be7ac8d8d9c41694e5d34d54b3050ee06f6589 (diff)
downloadmongo-9f2867c9da77e2d64df3852f7d4578f10e6f0817.tar.gz
SERVER-70127 change system operation threads to be killable by default
Diffstat (limited to 'src/mongo/db/concurrency/d_concurrency_bm.cpp')
-rw-r--r--src/mongo/db/concurrency/d_concurrency_bm.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/concurrency/d_concurrency_bm.cpp b/src/mongo/db/concurrency/d_concurrency_bm.cpp
index e8c4f5639f1..acef49812cc 100644
--- a/src/mongo/db/concurrency/d_concurrency_bm.cpp
+++ b/src/mongo/db/concurrency/d_concurrency_bm.cpp
@@ -82,6 +82,13 @@ public:
for (int i = 0; i < k; ++i) {
auto client = getGlobalServiceContext()->makeClient(str::stream()
<< "test client for thread " << i);
+
+ // TODO(SERVER-74657): Please revisit if this thread could be made killable.
+ {
+ stdx::lock_guard<Client> lk(*client.get());
+ client.get()->setSystemOperationUnKillableByStepdown(lk);
+ }
+
auto opCtx = client->makeOperationContext();
clients.emplace_back(std::move(client), std::move(opCtx));
}