fix
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...

This commit is contained in:
2025-09-11 08:02:26 -05:00
parent 57ad2e9773
commit 4267861034
3 changed files with 7 additions and 8 deletions

View File

@@ -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, auto rdb_file_mgr_db::add_resume(const resume_entry &entry,
rocksdb::Transaction *txn) -> rocksdb::Status { rocksdb::Transaction *txn) -> rocksdb::Status {
REPERTORY_USES_FUNCTION_NAME();
auto data = json({ auto data = json({
{"chunk_size", entry.chunk_size}, {"chunk_size", entry.chunk_size},
{"read_state", utils::string::from_dynamic_bitset(entry.read_state)}, {"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( auto rdb_file_mgr_db::remove_resume(const std::string &api_path,
const std::string &api_path, rocksdb::Transaction *txn) -> rocksdb::Status { rocksdb::Transaction *txn)
-> rocksdb::Status {
return txn->Delete(resume_family_, api_path); return txn->Delete(resume_family_, api_path);
} }

View File

@@ -99,14 +99,14 @@ void set_last_error_code(int error_code);
-> bool; -> bool;
#endif // defined(PROJECT_ENABLE_PUGIXML) #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, [[nodiscard]] auto launchctl_command(std::string_view label,
launchctl_type type) -> int; launchctl_type type) -> int;
[[nodiscard]] auto remove_launchd_plist(std::string_view plist_path, [[nodiscard]] auto remove_launchd_plist(std::string_view plist_path,
std::string_view label, std::string_view label,
bool should_bootout) -> bool; bool should_bootout) -> bool;
#endif // defined(PROJECT_ENABLE_FMT) #endif // defined(PROJECT_ENABLE_SPDLOG) || defined(PROJECT_ENABLE_FMT)
#endif // defined(__APPLE__) #endif // defined(__APPLE__)
// template implementations // template implementations

View File

@@ -368,7 +368,7 @@ auto generate_launchd_plist(const plist_cfg &cfg, bool overwrite_existing)
} }
#endif // defined(PROJECT_ENABLE_PUGIXML) #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 { auto launchctl_command(std::string_view label, launchctl_type type) -> int {
switch (type) { switch (type) {
case launchctl_type::bootout: case launchctl_type::bootout:
@@ -417,7 +417,7 @@ auto remove_launchd_plist(std::string_view plist_path, std::string_view label,
return res == 0; return res == 0;
} }
#endif // defined(PROJECT_ENABLE_FMT) #endif // defined(PROJECT_ENABLE_SPDLOG) || defined(PROJECT_ENABLE_FMT)
#endif // defined(__APPLE__) #endif // defined(__APPLE__)
} // namespace repertory::utils } // namespace repertory::utils