summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/persistent_task_queue_test.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2020-08-18 14:34:00 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-25 19:10:07 +0000
commit20169d980a7eb60b4ef675cafab70be2c6a80e46 (patch)
tree353a60f09987e65ba879a04b9eeda26ed4467a09 /src/mongo/db/s/persistent_task_queue_test.cpp
parent680eb5a61bc123d021a75b5ec5a997409ec0d36d (diff)
downloadmongo-20169d980a7eb60b4ef675cafab70be2c6a80e46.tar.gz
SERVER-50344 Rename Client methods to clarify that they are about being killed during stepdown
Diffstat (limited to 'src/mongo/db/s/persistent_task_queue_test.cpp')
-rw-r--r--src/mongo/db/s/persistent_task_queue_test.cpp4
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();