Fix ringloop, implement first version of handle_event for reads

This commit is contained in:
Vitaliy Filippov
2019-11-05 23:06:06 +03:00
parent 82cf0a170e
commit 3f5ad16748
7 changed files with 54 additions and 14 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ int blockstore_init_meta::loop()
}
if (!submitted)
{
struct io_uring_sqe *sqe = bs->ringloop->get_sqe();
struct io_uring_sqe *sqe = bs->get_sqe();
if (!sqe)
{
throw new std::runtime_error("io_uring is full while trying to read metadata");
@@ -170,7 +170,7 @@ int blockstore_init_journal::loop()
if (step == 0)
{
// Step 1: Read first block of the journal
struct io_uring_sqe *sqe = bs->ringloop->get_sqe();
struct io_uring_sqe *sqe = bs->get_sqe();
if (!sqe)
{
throw new std::runtime_error("io_uring is full while trying to read journal");
@@ -194,7 +194,7 @@ int blockstore_init_journal::loop()
}
else
{
struct io_uring_sqe *sqe = bs->ringloop->get_sqe();
struct io_uring_sqe *sqe = bs->get_sqe();
if (!sqe)
{
throw new std::runtime_error("io_uring is full while trying to read journal");