From cdd1fc2a9c8e2da8945aa7693a93f6b319f00398 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 30 May 2020 17:36:47 -0700 Subject: [PATCH] ircd::fs::aio: Relax assertion. --- 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 4f190e376..7faf3f36f 100644 --- a/ircd/fs_aio.cc +++ b/ircd/fs_aio.cc @@ -280,7 +280,7 @@ ircd::fs::aio::read(const vector_view &op) for(size_t i(0); i < num; ++i) try { op[i].ret = request[i].complete(); - assert(op[i].ret == buffers::size(op[i].bufs) || !op[i].opts->blocking); + assert(!op[i].ret || op[i].ret == buffers::size(op[i].bufs) || !op[i].opts->blocking); ret += op[i].ret; stats.bytes_read += op[i].ret; stats.reads++;