Use an interface instead of explicit blockstore_t wrapper

This commit is contained in:
Vitaliy Filippov
2025-11-23 01:48:44 +03:00
parent 1badc6ad13
commit 8ee7058ec8
10 changed files with 50 additions and 121 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ osd_t::osd_t(const json11::Json & config, ring_loop_t *ringloop)
if (!json_is_true(this->config["disable_blockstore"]))
{
auto bs_cfg = json_to_string_map(this->config);
this->bs = new blockstore_t(bs_cfg, ringloop, tfd);
this->bs = blockstore_i::create(bs_cfg, ringloop, tfd);
// Wait for blockstore initialisation before actually starting OSD logic
// to prevent peering timeouts during restart with filled databases
while (!bs->is_started())