clear sparse flag on files that complete on windows

This commit is contained in:
Arvid Norberg
2010-01-09 18:40:05 +00:00
parent c1ea06f373
commit d498c129ab
9 changed files with 103 additions and 40 deletions

View File

@@ -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))