mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::db::database::env: Branch for exception first in result loop.
This commit is contained in:
parent
f0d0705dfd
commit
d9827f3daa
1 changed files with 7 additions and 4 deletions
|
@ -3391,13 +3391,16 @@ noexcept try
|
||||||
|
|
||||||
for(size_t i(0); i < num; ++i) try
|
for(size_t i(0); i < num; ++i) try
|
||||||
{
|
{
|
||||||
assert(op[i].ret <= size(buf[i]));
|
|
||||||
const const_buffer read(buf[i], op[i].ret);
|
|
||||||
req[i].result = slice(read);
|
|
||||||
|
|
||||||
if(op[i].eptr)
|
if(op[i].eptr)
|
||||||
std::rethrow_exception(op[i].eptr);
|
std::rethrow_exception(op[i].eptr);
|
||||||
|
|
||||||
|
assert(op[i].ret <= size(buf[i]));
|
||||||
|
const const_buffer read
|
||||||
|
{
|
||||||
|
buf[i], op[i].ret
|
||||||
|
};
|
||||||
|
|
||||||
|
req[i].result = slice(read);
|
||||||
req[i].status = Status::OK();
|
req[i].status = Status::OK();
|
||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
|
|
Loading…
Reference in a new issue