File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,11 @@ void PrestageRequestManager::PrestageQueue::PrestageWorker::Run() {
110110void PrestageRequestManager::PrestageQueue::Done (PrestageWorker *worker) {
111111 std::unique_lock lock (m_mutex);
112112 m_done = true ;
113- std::erase_if (m_workers, [&](std::unique_ptr<PrestageWorker> &other) {
114- return other.get () == worker;
115- });
113+ auto it = std::remove_if (m_workers.begin (), m_workers.end (),
114+ [&](std::unique_ptr<PrestageWorker> &other) {
115+ return other.get () == worker;
116+ });
117+ m_workers.erase (it, m_workers.end ());
116118
117119 if (m_workers.empty ()) {
118120 lock.unlock ();
Original file line number Diff line number Diff line change 1818
1919#include " private/XrdHttp/XrdHttpExtHandler.hh"
2020
21+ #include < atomic>
2122#include < chrono>
2223#include < condition_variable>
2324#include < deque>
You can’t perform that action at this time.
0 commit comments