fix
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
Scott E. Graves 2024-10-26 20:39:01 -05:00
parent fa92540bb9
commit eba242de7f
2 changed files with 10 additions and 6 deletions

View File

@ -78,7 +78,7 @@ private:
void download_chunk(std::size_t chunk, bool skip_active, bool should_reset);
void download_range(std::size_t start_chunk_index,
std::size_t end_chunk_index_inclusive, bool should_reset);
std::size_t end_chunk_index, bool should_reset);
void set_modified();

View File

@ -208,11 +208,10 @@ void open_file::download_chunk(std::size_t chunk, bool skip_active,
}
void open_file::download_range(std::size_t start_chunk_index,
std::size_t end_chunk_index_inclusive,
bool should_reset) {
for (std::size_t chunk = start_chunk_index;
chunk <= end_chunk_index_inclusive; chunk++) {
download_chunk(chunk, false, should_reset);
std::size_t end_chunk_index, bool should_reset) {
for (std::size_t chunk_index = start_chunk_index;
chunk_index <= end_chunk_index; ++chunk_index) {
download_chunk(chunk_index, false, should_reset);
if (get_api_error() != api_error::success) {
return;
}
@ -571,6 +570,11 @@ auto open_file::write(std::uint64_t write_offset, const data_buffer &data,
return api_error::os_error;
}
for (std::size_t chunk_index = start_chunk_index;
chunk_index <= end_chunk_index; ++chunk_index) {
read_state_.set(chunk_idx);
}
reset_timeout();
return api_error::success;
});