diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/util/concurrency/ticketholder.cpp | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/util/concurrency/ticketholder.cpp')
| -rw-r--r-- | src/mongo/util/concurrency/ticketholder.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mongo/util/concurrency/ticketholder.cpp b/src/mongo/util/concurrency/ticketholder.cpp index 4de937b4bd6..f0ff7fdb4ce 100644 --- a/src/mongo/util/concurrency/ticketholder.cpp +++ b/src/mongo/util/concurrency/ticketholder.cpp @@ -40,13 +40,10 @@ #include <iostream> #include "mongo/logv2/log.h" -#include "mongo/util/fail_point.h" #include "mongo/util/str.h" namespace mongo { -MONGO_FAIL_POINT_DEFINE(hangTicketRelease); - TicketHolder::~TicketHolder() = default; #if defined(__linux__) @@ -147,12 +144,6 @@ boost::optional<Ticket> SemaphoreTicketHolder::waitForTicketUntil(OperationConte } void SemaphoreTicketHolder::release(AdmissionContext* admCtx, Ticket&& ticket) { - if (MONGO_unlikely(hangTicketRelease.shouldFail())) { - LOGV2(8435300, - "Hanging hangTicketRelease in release() due to 'hangTicketRelease' " - "failpoint"); - hangTicketRelease.pauseWhileSet(); - } check(sem_post(&_sem)); ticket.release(); } @@ -250,12 +241,6 @@ boost::optional<Ticket> SemaphoreTicketHolder::waitForTicketUntil(OperationConte } void SemaphoreTicketHolder::release(AdmissionContext* admCtx, Ticket&& ticket) { - if (MONGO_unlikely(hangTicketRelease.shouldFail())) { - LOGV2(8435301, - "Hanging hangTicketRelease in release() due to 'hangTicketRelease' " - "failpoint"); - hangTicketRelease.pauseWhileSet(); - } { stdx::lock_guard<Latch> lk(_mutex); _num++; |
