diff options
Diffstat (limited to 'src/mongo/db/s/persistent_task_queue_test.cpp')
-rw-r--r-- | src/mongo/db/s/persistent_task_queue_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/persistent_task_queue_test.cpp b/src/mongo/db/s/persistent_task_queue_test.cpp index 6009b99860c..4c498940583 100644 --- a/src/mongo/db/s/persistent_task_queue_test.cpp +++ b/src/mongo/db/s/persistent_task_queue_test.cpp @@ -70,7 +70,7 @@ void killOps(ServiceContext* serviceCtx) { for (Client* client = cursor.next(); client != nullptr; client = cursor.next()) { stdx::lock_guard<Client> lk(*client); - if (client->isFromSystemConnection() && !client->shouldKillSystemOperation(lk)) + if (client->isFromSystemConnection() && !client->canKillSystemOperationInStepdown(lk)) continue; OperationContext* toKill = client->getOperationContext(); @@ -289,7 +289,7 @@ TEST_F(PersistentTaskQueueTest, TestKilledOperationContextWhileWaitingOnCV) { ThreadClient tc("RangeDeletionService", getGlobalServiceContext()); { stdx::lock_guard<Client> lk(*tc.get()); - tc->setSystemOperationKillable(lk); + tc->setSystemOperationKillableByStepdown(lk); } auto opCtx = tc->makeOperationContext(); |