revert and do what the previous check-in was supposed to do
This commit is contained in:
parent
065c33969a
commit
292c7f61a1
|
@ -830,9 +830,7 @@ namespace libtorrent
|
||||||
|
|
||||||
void piece_picker::dec_refcount_all()
|
void piece_picker::dec_refcount_all()
|
||||||
{
|
{
|
||||||
#ifdef TORRENT_EXPENSIVE_INVARIANT_CHECKS
|
|
||||||
TORRENT_PIECE_PICKER_INVARIANT_CHECK;
|
TORRENT_PIECE_PICKER_INVARIANT_CHECK;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (m_seeds > 0)
|
if (m_seeds > 0)
|
||||||
{
|
{
|
||||||
|
@ -893,7 +891,9 @@ namespace libtorrent
|
||||||
|
|
||||||
void piece_picker::inc_refcount(bitfield const& bitmask)
|
void piece_picker::inc_refcount(bitfield const& bitmask)
|
||||||
{
|
{
|
||||||
|
#ifdef TORRENT_EXPENSIVE_INVARIANT_CHECKS
|
||||||
TORRENT_PIECE_PICKER_INVARIANT_CHECK;
|
TORRENT_PIECE_PICKER_INVARIANT_CHECK;
|
||||||
|
#endif
|
||||||
TORRENT_ASSERT(bitmask.size() == m_piece_map.size());
|
TORRENT_ASSERT(bitmask.size() == m_piece_map.size());
|
||||||
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
@ -913,7 +913,9 @@ namespace libtorrent
|
||||||
|
|
||||||
void piece_picker::dec_refcount(bitfield const& bitmask)
|
void piece_picker::dec_refcount(bitfield const& bitmask)
|
||||||
{
|
{
|
||||||
|
#ifdef TORRENT_EXPENSIVE_INVARIANT_CHECKS
|
||||||
TORRENT_PIECE_PICKER_INVARIANT_CHECK;
|
TORRENT_PIECE_PICKER_INVARIANT_CHECK;
|
||||||
|
#endif
|
||||||
TORRENT_ASSERT(bitmask.size() == m_piece_map.size());
|
TORRENT_ASSERT(bitmask.size() == m_piece_map.size());
|
||||||
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
Loading…
Reference in New Issue