clear sparse flag on files that complete on windows
This commit is contained in:
@@ -1341,6 +1341,7 @@ namespace libtorrent
|
||||
, fence_operation // abort_torrent
|
||||
, 0 // update_settings
|
||||
, read_operation // read_and_hash
|
||||
, 0 // finalize_file
|
||||
};
|
||||
|
||||
bool is_fence_operation(disk_io_job const& j)
|
||||
@@ -1672,6 +1673,14 @@ namespace libtorrent
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
case disk_io_job::finalize_file:
|
||||
{
|
||||
#ifdef TORRENT_DISK_STATS
|
||||
m_log << log_time() << " finalize_file " << j.piece << std::endl;
|
||||
#endif
|
||||
j.storage->finalize_file(j.piece);
|
||||
break;
|
||||
}
|
||||
case disk_io_job::read:
|
||||
{
|
||||
if (test_error(j))
|
||||
|
Reference in New Issue
Block a user