fixed disk cache bug

This commit is contained in:
Arvid Norberg 2010-02-05 04:30:57 +00:00
parent 43da4fba50
commit 7b0555ae45
1 changed files with 2 additions and 2 deletions

View File

@ -600,7 +600,7 @@ namespace libtorrent
if (m_settings.disk_cache_algorithm == session_settings::lru)
{
cache_lru_index_t& idx = m_read_pieces.get<1>();
cache_lru_index_t& idx = m_pieces.get<1>();
while (blocks > 0)
{
cache_lru_index_t::iterator i = idx.begin();
@ -613,7 +613,7 @@ namespace libtorrent
}
else if (m_settings.disk_cache_algorithm == session_settings::largest_contiguous)
{
cache_lru_index_t& idx = m_read_pieces.get<1>();
cache_lru_index_t& idx = m_pieces.get<1>();
while (blocks > 0)
{
cache_lru_index_t::iterator i =