fix missing return
This commit is contained in:
@@ -318,7 +318,7 @@ auto file_manager::get_open_file_by_handle(std::uint64_t handle,
|
||||
|
||||
if (unlinked_file_lookup_.contains(handle)) {
|
||||
is_unlinked = true;
|
||||
unlinked_file_lookup_.at(handle);
|
||||
return unlinked_file_lookup_.at(handle);
|
||||
}
|
||||
|
||||
is_unlinked = false;
|
||||
@@ -374,8 +374,8 @@ auto file_manager::get_open_file(std::uint64_t handle, bool write_supported,
|
||||
writeable_file->set_unlinked(is_unlinked);
|
||||
if (is_unlinked) {
|
||||
writeable_file->set_unlinked_meta(file_ptr->get_unlinked_meta());
|
||||
for (const auto &[handle, ofd] : writeable_file->get_open_data()) {
|
||||
unlinked_file_lookup_[handle] = writeable_file;
|
||||
for (const auto &[sub_handle, ofd] : writeable_file->get_open_data()) {
|
||||
unlinked_file_lookup_[sub_handle] = writeable_file;
|
||||
}
|
||||
} else {
|
||||
open_file_lookup_[file_ptr->get_api_path()] = writeable_file;
|
||||
|
Reference in New Issue
Block a user