0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 14:31:11 +01:00

ircd::fs::aio: Relax assertion.

This commit is contained in:
Jason Volk 2020-05-30 17:36:47 -07:00
parent 23b0674051
commit cdd1fc2a9c

View file

@ -280,7 +280,7 @@ ircd::fs::aio::read(const vector_view<read_op> &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++;