Skip to content

Commit

Permalink
adapt homestore initialize interface (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
zichanglai authored Sep 21, 2023
1 parent 741478f commit 1efd36d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib/homestore/homeobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 1efd36d

Please sign in to comment.