refactor
This commit is contained in:
parent
02b74402f4
commit
6a820837cc
@ -406,13 +406,14 @@ void open_file::remove_all() {
|
|||||||
recur_mutex_lock file_lock(file_mtx_);
|
recur_mutex_lock file_lock(file_mtx_);
|
||||||
open_file_base::remove_all();
|
open_file_base::remove_all();
|
||||||
|
|
||||||
modified_ = false;
|
|
||||||
removed_ = true;
|
|
||||||
|
|
||||||
set_api_error(api_error::success);
|
set_api_error(api_error::success);
|
||||||
|
|
||||||
mgr_.remove_upload(get_api_path());
|
if (modified_) {
|
||||||
mgr_.remove_resume(get_api_path(), get_source_path());
|
mgr_.remove_upload(get_api_path());
|
||||||
|
}
|
||||||
|
|
||||||
|
modified_ = false;
|
||||||
|
removed_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto open_file::resize(std::uint64_t new_file_size) -> api_error {
|
auto open_file::resize(std::uint64_t new_file_size) -> api_error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user