diff options
| author | Jiawei Yang <jiawei.yang@mongodb.com> | 2023-04-25 22:43:17 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-26 04:08:30 +0000 |
| commit | 606e34054ef33e59b78715263b125ff7ebea1394 (patch) | |
| tree | 85f8e6b1256096da4facc919bc6123db693a437f /src/mongo/db/storage/checkpointer.cpp | |
| parent | 5c1f588bfa4ed2edbeb3abbb26e952e08641da14 (diff) | |
| download | mongo-606e34054ef33e59b78715263b125ff7ebea1394.tar.gz | |
SERVER-70127 change system operations to be killable by default
Diffstat (limited to 'src/mongo/db/storage/checkpointer.cpp')
| -rw-r--r-- | src/mongo/db/storage/checkpointer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/storage/checkpointer.cpp b/src/mongo/db/storage/checkpointer.cpp index 2595526973e..6b633075ae7 100644 --- a/src/mongo/db/storage/checkpointer.cpp +++ b/src/mongo/db/storage/checkpointer.cpp @@ -73,6 +73,11 @@ void Checkpointer::run() { ThreadClient tc(name(), getGlobalServiceContext()); LOGV2_DEBUG(22307, 1, "Starting thread", "threadName"_attr = name()); + { + stdx::lock_guard<Client> lk(*tc.get()); + tc.get()->setSystemOperationUnkillableByStepdown(lk); + } + while (true) { auto opCtx = tc->makeOperationContext(); |
