Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Oct 27, 2024
1 parent b7ab4d7 commit 1a4799c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/disk_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ bool disk_cache::try_clear_piece(piece_location const loc, pread_disk_job* j, jo
TORRENT_ASSERT(!i->hashing);
if (i->hashing)
{
// postpone the clearing until we're done flushing
// postpone the clearing until we're done hashing
view.modify(i, [&](cached_piece_entry& e) { e.clear_piece = j; });
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/pread_disk_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ int pread_disk_io::flush_cache_blocks(bitfield& flushed
ret += count;

if (error) {
int i = start_idx + count;
TORRENT_ASSERT(i == start_idx + count);
// if there was a failure, fail the remaining jobs as well
for (aux::cached_block_entry const& blk : blocks.subspan(start_idx + count))
{
Expand Down

0 comments on commit 1a4799c

Please sign in to comment.