extend move_storage functionality to have more flexible behavior

This commit is contained in:
Arvid Norberg
2013-05-09 02:50:16 +00:00
parent 0a525477e3
commit 982a14c2e9
13 changed files with 152 additions and 63 deletions

View File

@@ -2240,7 +2240,7 @@ namespace libtorrent
m_log << log_time() << " move" << std::endl;
#endif
TORRENT_ASSERT(j.buffer == 0);
ret = j.storage->move_storage_impl(j.str);
ret = j.storage->move_storage_impl(j.str, j.piece);
if (ret != 0)
{
test_error(j);