Add the missing ringloop creation check to vitastor_c_create_uring_json()
Test / make_test (push) Failing after 1s Details
Test / test_add_osd (push) Failing after 1s Details
Test / test_cas (push) Failing after 1s Details
Test / buildenv (push) Successful in 9s Details
Test / test_change_pg_count (push) Failing after 1s Details
Test / test_change_pg_count_ec (push) Failing after 1s Details
Test / test_change_pg_size (push) Failing after 1s Details
Test / test_create_nomaxid (push) Failing after 1s Details
Test / test_etcd_fail (push) Failing after 1s Details
Test / test_interrupted_rebalance (push) Failing after 1s Details
Test / test_interrupted_rebalance_imm (push) Failing after 1s Details
Test / test_interrupted_rebalance_ec (push) Failing after 1s Details
Test / test_interrupted_rebalance_ec_imm (push) Failing after 1s Details
Test / test_failure_domain (push) Failing after 1s Details
Test / test_snapshot (push) Failing after 1s Details
Test / test_snapshot_ec (push) Failing after 1s Details
Test / test_minsize_1 (push) Failing after 1s Details
Test / test_move_reappear (push) Failing after 1s Details
Test / test_rm (push) Failing after 0s Details
Test / test_snapshot_chain (push) Failing after 0s Details
Test / test_snapshot_chain_ec (push) Failing after 1s Details
Test / test_snapshot_down (push) Failing after 1s Details
Test / test_snapshot_down_ec (push) Failing after 0s Details
Test / test_splitbrain (push) Failing after 1s Details
Test / test_rebalance_verify (push) Failing after 1s Details
Test / test_rebalance_verify_imm (push) Failing after 1s Details
Test / test_rebalance_verify_ec (push) Failing after 1s Details
Test / test_rebalance_verify_ec_imm (push) Failing after 1s Details
Test / test_write (push) Failing after 1s Details
Test / test_write_xor (push) Failing after 1s Details
Test / test_write_no_same (push) Failing after 1s Details
Test / test_heal_pg_size_2 (push) Failing after 1s Details
Test / test_heal_ec (push) Failing after 1s Details
Test / test_heal_csum_32k_dmj (push) Failing after 1s Details
Test / test_heal_csum_32k_dj (push) Failing after 1s Details
Test / test_heal_csum_32k (push) Failing after 1s Details
Test / test_heal_csum_4k_dmj (push) Failing after 1s Details
Test / test_heal_csum_4k_dj (push) Failing after 1s Details
Test / test_heal_csum_4k (push) Failing after 1s Details
Test / test_scrub (push) Failing after 1s Details
Test / test_scrub_zero_osd_2 (push) Failing after 1s Details
Test / test_scrub_xor (push) Failing after 1s Details
Test / test_scrub_pg_size_3 (push) Failing after 1s Details
Test / test_scrub_pg_size_6_pg_minsize_4_osd_count_6_ec (push) Failing after 0s Details
Test / test_scrub_ec (push) Failing after 1s Details
Test / build (push) Successful in 2m35s Details

hotfix-1.1.0
Vitaliy Filippov 2023-10-26 17:59:16 +03:00
parent a061246997
commit ad30b11519
1 changed files with 10 additions and 1 deletions

View File

@ -164,6 +164,15 @@ int vitastor_c_uring_register_eventfd(vitastor_c *client)
vitastor_c *vitastor_c_create_uring_json(const char **options, int options_len)
{
ring_loop_t *ringloop = NULL;
try
{
ringloop = new ring_loop_t(512);
}
catch (std::exception & e)
{
return NULL;
}
json11::Json::object cfg;
for (int i = 0; i < options_len-1; i += 2)
{
@ -171,7 +180,7 @@ vitastor_c *vitastor_c_create_uring_json(const char **options, int options_len)
}
json11::Json cfg_json(cfg);
vitastor_c *self = new vitastor_c;
self->ringloop = new ring_loop_t(512);
self->ringloop = ringloop;
self->epmgr = new epoll_manager_t(self->ringloop);
self->cli = new cluster_client_t(self->ringloop, self->epmgr->tfd, cfg_json);
return self;