From 4267861034c86816a44d6afe64d35f40ec8730c3 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 11 Sep 2025 08:02:26 -0500 Subject: [PATCH] fix --- repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp | 7 +++---- support/include/utils/unix.hpp | 4 ++-- support/src/utils/unix.cpp | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp b/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp index 7ac0e852..66cd8fbb 100644 --- a/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp +++ b/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp @@ -67,8 +67,6 @@ auto rdb_file_mgr_db::add_resume(const resume_entry &entry) -> bool { auto rdb_file_mgr_db::add_resume(const resume_entry &entry, rocksdb::Transaction *txn) -> rocksdb::Status { - REPERTORY_USES_FUNCTION_NAME(); - auto data = json({ {"chunk_size", entry.chunk_size}, {"read_state", utils::string::from_dynamic_bitset(entry.read_state)}, @@ -241,8 +239,9 @@ auto rdb_file_mgr_db::remove_resume(const std::string &api_path) -> bool { }); } -auto rdb_file_mgr_db::remove_resume( - const std::string &api_path, rocksdb::Transaction *txn) -> rocksdb::Status { +auto rdb_file_mgr_db::remove_resume(const std::string &api_path, + rocksdb::Transaction *txn) + -> rocksdb::Status { return txn->Delete(resume_family_, api_path); } diff --git a/support/include/utils/unix.hpp b/support/include/utils/unix.hpp index 623decbb..c714245b 100644 --- a/support/include/utils/unix.hpp +++ b/support/include/utils/unix.hpp @@ -99,14 +99,14 @@ void set_last_error_code(int error_code); -> bool; #endif // defined(PROJECT_ENABLE_PUGIXML) -#if defined(PROJECT_ENABLE_FMT) +#if defined(PROJECT_ENABLE_SPDLOG) || defined(PROJECT_ENABLE_FMT) [[nodiscard]] auto launchctl_command(std::string_view label, launchctl_type type) -> int; [[nodiscard]] auto remove_launchd_plist(std::string_view plist_path, std::string_view label, bool should_bootout) -> bool; -#endif // defined(PROJECT_ENABLE_FMT) +#endif // defined(PROJECT_ENABLE_SPDLOG) || defined(PROJECT_ENABLE_FMT) #endif // defined(__APPLE__) // template implementations diff --git a/support/src/utils/unix.cpp b/support/src/utils/unix.cpp index 6b161587..de59f20e 100644 --- a/support/src/utils/unix.cpp +++ b/support/src/utils/unix.cpp @@ -368,7 +368,7 @@ auto generate_launchd_plist(const plist_cfg &cfg, bool overwrite_existing) } #endif // defined(PROJECT_ENABLE_PUGIXML) -#if defined(PROJECT_ENABLE_FMT) +#if defined(PROJECT_ENABLE_SPDLOG) || defined(PROJECT_ENABLE_FMT) auto launchctl_command(std::string_view label, launchctl_type type) -> int { switch (type) { case launchctl_type::bootout: @@ -417,7 +417,7 @@ auto remove_launchd_plist(std::string_view plist_path, std::string_view label, return res == 0; } -#endif // defined(PROJECT_ENABLE_FMT) +#endif // defined(PROJECT_ENABLE_SPDLOG) || defined(PROJECT_ENABLE_FMT) #endif // defined(__APPLE__) } // namespace repertory::utils