Integrate "heap" metadata storage into blockstore

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:11 +03:00
parent 8430104c19
commit 8ff2c268f7
34 changed files with 8166 additions and 5398 deletions
+8 -1
View File
@@ -1,9 +1,16 @@
// Copyright (c) Vitaliy Filippov, 2019+
// License: VNPL-1.1 (see README.md for details)
#include "str_util.h"
#include "blockstore_impl.h"
#include "v1/impl.h"
blockstore_i* blockstore_i::create(blockstore_config_t & config, ring_loop_t *ringloop, timerfd_manager_t *tfd)
{
return new blockstore_impl_t(config, ringloop, tfd);
auto meta_format = stoull_full(config["meta_format"]);
if (meta_format == BLOCKSTORE_META_FORMAT_HEAP)
return new blockstore_impl_t(config, ringloop, tfd);
else
return new v1::blockstore_impl_t(config, ringloop, tfd);
}