fixed rename_file() bug where the new name would not be saved in the resume data in some cases

This commit is contained in:
Arvid Norberg
2009-06-22 00:52:57 +00:00
parent 93e1c70263
commit cc3e6621ed
8 changed files with 31 additions and 14 deletions

View File

@@ -146,7 +146,7 @@ void run_storage_tests(boost::intrusive_ptr<torrent_info> info
file_pool fp;
disk_buffer_pool dp(16 * 1024);
boost::scoped_ptr<storage_interface> s(
default_storage_constructor(fs, test_path, fp));
default_storage_constructor(fs, 0, test_path, fp));
s->m_settings = &set;
s->m_disk_pool = &dp;
@@ -324,7 +324,7 @@ void test_remove(path const& test_path, bool unbuffered)
file_pool fp;
disk_buffer_pool dp(16 * 1024);
boost::scoped_ptr<storage_interface> s(
default_storage_constructor(fs, test_path, fp));
default_storage_constructor(fs, 0, test_path, fp));
s->m_settings = &set;
s->m_disk_pool = &dp;