diff --git a/repertory/librepertory/include/file_manager/direct_open_file.hpp b/repertory/librepertory/include/file_manager/direct_open_file.hpp index 298bbec1..ec63d49b 100644 --- a/repertory/librepertory/include/file_manager/direct_open_file.hpp +++ b/repertory/librepertory/include/file_manager/direct_open_file.hpp @@ -67,7 +67,7 @@ protected: -> api_error override; public: - void download() override {} + void force_download() override {} [[nodiscard]] auto get_source_path() const -> std::string override { return "direct"; diff --git a/repertory/librepertory/include/file_manager/i_open_file.hpp b/repertory/librepertory/include/file_manager/i_open_file.hpp index 5f980a8d..ee480707 100644 --- a/repertory/librepertory/include/file_manager/i_open_file.hpp +++ b/repertory/librepertory/include/file_manager/i_open_file.hpp @@ -32,7 +32,7 @@ public: using native_operation_callback = std::function; public: - virtual void download() = 0; + virtual void force_download() = 0; [[nodiscard]] virtual auto get_api_path() const -> std::string = 0; diff --git a/repertory/librepertory/include/file_manager/open_file.hpp b/repertory/librepertory/include/file_manager/open_file.hpp index e584d90e..9e2492c0 100644 --- a/repertory/librepertory/include/file_manager/open_file.hpp +++ b/repertory/librepertory/include/file_manager/open_file.hpp @@ -101,7 +101,7 @@ private: public: auto close() -> bool override; - void download() override; + void force_download() override; [[nodiscard]] auto get_allocated() const -> bool override; diff --git a/repertory/librepertory/include/file_manager/ring_buffer_open_file.hpp b/repertory/librepertory/include/file_manager/ring_buffer_open_file.hpp index ef865fba..1a5ceae5 100644 --- a/repertory/librepertory/include/file_manager/ring_buffer_open_file.hpp +++ b/repertory/librepertory/include/file_manager/ring_buffer_open_file.hpp @@ -75,7 +75,7 @@ public: std::size_t chunk_size, std::size_t ring_size) -> bool; - void download() override {} + void force_download() override {} [[nodiscard]] auto native_operation(native_operation_callback callback) -> api_error override; diff --git a/repertory/librepertory/src/file_manager/file_manager.cpp b/repertory/librepertory/src/file_manager/file_manager.cpp index 202fd718..b58fd2c3 100644 --- a/repertory/librepertory/src/file_manager/file_manager.cpp +++ b/repertory/librepertory/src/file_manager/file_manager.cpp @@ -179,7 +179,7 @@ auto file_manager::download_pinned_file(const std::string &api_path) -> bool { auto ret = get_open_file(handle, true, open_file); if (ret) { - open_file->download(); + open_file->force_download(); } close(handle); @@ -994,7 +994,7 @@ void file_manager::start() { : 0U, fsi, provider_, entry.read_state, *this); open_file_lookup_[entry.api_path] = closeable_file; - closeable_file->download(); + closeable_file->force_download(); event_system::instance().raise( fsi.api_path, fsi.source_path, function_name); diff --git a/repertory/librepertory/src/file_manager/open_file.cpp b/repertory/librepertory/src/file_manager/open_file.cpp index 0fe96ddc..bb48ef1b 100644 --- a/repertory/librepertory/src/file_manager/open_file.cpp +++ b/repertory/librepertory/src/file_manager/open_file.cpp @@ -273,7 +273,7 @@ auto open_file::close() -> bool { return true; } -void open_file::download() { +void open_file::force_download() { unique_recur_mutex_lock rw_lock(rw_mtx_); auto read_chunk = read_chunk_; rw_lock.unlock();