From 1bc1b3c207f1bb0f54e88b085e7c5ea84f6e0080 Mon Sep 17 00:00:00 2001 From: Jason Volk <jason@zemos.net> Date: Tue, 5 Mar 2019 08:51:47 -0800 Subject: [PATCH] ircd::fs::aio: Fix bug. --- ircd/fs_aio.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/fs_aio.cc b/ircd/fs_aio.cc index 4bd794133..12eee29d2 100644 --- a/ircd/fs_aio.cc +++ b/ircd/fs_aio.cc @@ -495,7 +495,7 @@ ircd::fs::aio::system::cancel(request &request) const auto eit { - std::remove(begin(queue), end(queue), cb) + std::remove(begin(queue), begin(queue) + qcount, cb) }; const auto qcount