From 1efd36d8855707af7d3c891f8d9703c3c80578bb Mon Sep 17 00:00:00 2001 From: zichanglai <140365523+zichanglai@users.noreply.github.com> Date: Fri, 22 Sep 2023 03:47:58 +0800 Subject: [PATCH] adapt homestore initialize interface (#67) --- src/lib/homestore/homeobject.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib/homestore/homeobject.cpp b/src/lib/homestore/homeobject.cpp index 7fc349fd..03f5e576 100644 --- a/src/lib/homestore/homeobject.cpp +++ b/src/lib/homestore/homeobject.cpp @@ -38,12 +38,10 @@ void HSHomeObject::init_homestore() { device_info.emplace_back(std::filesystem::canonical(path).string(), homestore::HSDevType::Data); } - /// TODO need Repl service eventually yeah? + /// TODO need Repl service eventually and use HeapChunkSelector using namespace homestore; - uint32_t services = HS_SERVICE::META | HS_SERVICE::LOG_REPLICATED | HS_SERVICE::LOG_LOCAL | HS_SERVICE::DATA; - - bool need_format = HomeStore::instance()->start( - hs_input_params{.devices = device_info, .app_mem_size = app_mem_size, .services = services}, + bool need_format = HomeStore::instance()->with_data_service(nullptr).with_log_service().start( + hs_input_params{.devices = device_info, .app_mem_size = app_mem_size}, [this]() { register_homestore_metablk_callback(); }); /// TODO how should this work?