removed assert that could cause dead-lock in debug mode

This commit is contained in:
Arvid Norberg 2008-10-05 19:47:55 +00:00
parent 3144767632
commit 5f6351146a
1 changed files with 0 additions and 14 deletions

View File

@ -635,20 +635,6 @@ namespace libtorrent
TORRENT_ASSERT(j.storage);
TORRENT_ASSERT(j.buffer_size <= m_block_size);
mutex_t::scoped_lock l(m_queue_mutex);
#ifndef NDEBUG
mutex_t::scoped_lock l2(m_piece_mutex);
if (j.action == disk_io_job::write)
{
cache_t::iterator p
= find_cached_piece(m_pieces, j, l2);
if (p != m_pieces.end())
{
int block = j.offset / m_block_size;
char const* buffer = p->blocks[block];
TORRENT_ASSERT(buffer == 0);
}
}
#endif
std::list<disk_io_job>::reverse_iterator i = m_jobs.rbegin();
if (j.action == disk_io_job::read)