*** empty log message ***

This commit is contained in:
Arvid Norberg 2005-06-27 23:11:09 +00:00
parent 0efa042414
commit 4807fe6a46
2 changed files with 6 additions and 4 deletions

View File

@ -162,7 +162,11 @@ namespace
lru_view& lt = m_files.get<1>();
lru_view::iterator i = lt.begin();
// the first entry in this view is the least recently used
assert(lt.size() == 1 || boost::next(i)->last_use > i->last_use);
/* for (lru_view::iterator i = lt.begin(); i != lt.end(); ++i)
{
std::cerr << i->last_use << "\n";
}
*/ assert(lt.size() == 1 || (i->last_use <= boost::next(i)->last_use));
lt.erase(i);
}
file_entry e(boost::shared_ptr<file>(new file(p, m)));
@ -334,7 +338,7 @@ namespace libtorrent
static file_pool files;
};
file_pool storage::impl::files(100);
file_pool storage::impl::files(40);
storage::storage(const torrent_info& info, const path& path)
: m_pimpl(new impl(info, path))

View File

@ -592,8 +592,6 @@ namespace libtorrent
{
// this call is only valid on torrents with metadata
assert(m_picker.get());
assert(index >= 0);
assert(index < m_torrent_file.num_pieces());
// TODO: update peer's interesting-bit