From ea362211aaf1e552f24e93e62aef56de7c56288e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 2 Jan 2025 08:32:42 -0600 Subject: [PATCH] fix --- .../librepertory/src/db/impl/rdb_file_db.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/repertory/librepertory/src/db/impl/rdb_file_db.cpp b/repertory/librepertory/src/db/impl/rdb_file_db.cpp index ec1fc5f6..6ce76962 100644 --- a/repertory/librepertory/src/db/impl/rdb_file_db.cpp +++ b/repertory/librepertory/src/db/impl/rdb_file_db.cpp @@ -159,8 +159,9 @@ auto rdb_file_db::get_api_path(const std::string &source_path, }); } -auto rdb_file_db::get_directory_api_path( - const std::string &source_path, std::string &api_path) const -> api_error { +auto rdb_file_db::get_directory_api_path(const std::string &source_path, + std::string &api_path) const + -> api_error { REPERTORY_USES_FUNCTION_NAME(); auto result = perform_action(function_name, [&]() -> rocksdb::Status { @@ -183,8 +184,9 @@ auto rdb_file_db::get_directory_api_path( : result; } -auto rdb_file_db::get_directory_source_path( - const std::string &api_path, std::string &source_path) const -> api_error { +auto rdb_file_db::get_directory_source_path(const std::string &api_path, + std::string &source_path) const + -> api_error { REPERTORY_USES_FUNCTION_NAME(); auto result = perform_action(function_name, [&]() -> rocksdb::Status { @@ -245,8 +247,9 @@ auto rdb_file_db::get_file_data(const std::string &api_path, return result; } -auto rdb_file_db::get_file_source_path( - const std::string &api_path, std::string &source_path) const -> api_error { +auto rdb_file_db::get_file_source_path(const std::string &api_path, + std::string &source_path) const + -> api_error { REPERTORY_USES_FUNCTION_NAME(); auto result = perform_action(function_name, [&]() -> rocksdb::Status { @@ -283,7 +286,7 @@ auto rdb_file_db::get_item_list() const -> std::vector { auto json_data = json::parse(iter->value().ToString()); ret.emplace_back(i_file_db::file_info{ iter->key().ToString(), - true, + false, json_data.at("source_path").get(), }); }