This commit is contained in:
Scott E. Graves 2025-02-19 13:19:26 -06:00
parent 292dfaab3f
commit 365e83e15d

View File

@ -29,8 +29,8 @@ auto data_db::get(std::string_view download_id) const
return res.IsNotFound() ? rocksdb::Status{} : res; return res.IsNotFound() ? rocksdb::Status{} : res;
})) { })) {
utils::error::handle_exception( utils::error::handle_error(function_name,
function_name, fmt::format("failed to get|{}", download_id)); fmt::format("failed to get|{}", download_id));
} }
return ret; return ret;
@ -40,8 +40,8 @@ void data_db::open(std::string_view data_dir) {
MONITARR_USES_FUNCTION_NAME(); MONITARR_USES_FUNCTION_NAME();
auto db_path = utils::path::combine(data_dir, {"state_db"}); auto db_path = utils::path::combine(data_dir, {"state_db"});
utils::error::handle_exception(function_name, utils::error::handle_info(function_name,
fmt::format("opening database|{}", db_path)); fmt::format("opening database|{}", db_path));
rocksdb::Options options{}; rocksdb::Options options{};
options.create_if_missing = true; options.create_if_missing = true;