Changeset 8375


Ignore:
Timestamp:
May 11, 2009, 4:04:31 PM (12 years ago)
Author:
charles
Message:

(trunk libT) remove r8370's testing assertions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r8370 r8375  
    365365    tr_peer * removed;
    366366    struct peer_atom * atom = peer->atom;
    367 assert( atom == getExistingAtom( t, &peer->addr ) );
    368367
    369368    assert( torrentIsLocked( t ) );
     
    920919    {
    921920        struct peer_atom * atom = peer->atom;
    922 assert( atom == getExistingAtom( t, &peer->addr ) );
    923921        atom->myflags |= MYFLAG_BANNED;
    924922        peer->doPurge = 1;
     
    10081006        case TR_PEER_UPLOAD_ONLY:
    10091007            /* update our atom */
    1010             if( peer ) {
    1011 assert( peer->atom == getExistingAtom( t, &peer->addr ) );
     1008            if( peer )
    10121009                peer->atom->uploadOnly = e->uploadOnly ? UPLOAD_ONLY_YES : UPLOAD_ONLY_NO;
    1013             }
    10141010            break;
    10151011
     
    10371033
    10381034            /* update our atom */
    1039             if( peer && e->wasPieceData ) {
    1040 assert( peer->atom == getExistingAtom( t, &peer->addr ) );
     1035            if( peer && e->wasPieceData )
    10411036                peer->atom->piece_data_time = now;
    1042             }
    10431037
    10441038            tor->needsSeedRatioCheck = TRUE;
     
    10781072
    10791073            /* update our atom */
    1080             if( peer && e->wasPieceData ) {
    1081 assert( peer->atom == getExistingAtom( t, &peer->addr ) );
     1074            if( peer && e->wasPieceData )
    10821075                peer->atom->piece_data_time = now;
    1083             }
    10841076
    10851077            break;
     
    10921084                struct peer_atom * atom = peer->atom;
    10931085                const int peerIsSeed = e->progress >= 1.0;
    1094 assert( peer->atom == getExistingAtom( t, &peer->addr ) );
    10951086                if( peerIsSeed ) {
    10961087                    tordbg( t, "marking peer %s as a seed", tr_peerIoAddrStr( &atom->addr, atom->port ) );
     
    15551546            {
    15561547                const struct peer_atom * atom = peer->atom;
    1557 assert( atom == getExistingAtom( t, &peer->addr ) );
    15581548
    15591549                assert( tr_isAddress( &peer->addr ) );
     
    17471737        const tr_peer * peer = peers[i];
    17481738        const struct peer_atom * atom = peer->atom;
    1749 assert( atom == getExistingAtom( t, &peer->addr ) );
    17501739
    17511740        if( peer->io == NULL ) /* not connected */
     
    18331822        const struct peer_atom * atom = peer->atom;
    18341823        tr_peer_stat *           stat = ret + i;
    1835 assert( atom == getExistingAtom( t, &peer->addr ) );
    18361824
    18371825        tr_ntop( &peer->addr, stat->addr, sizeof( stat->addr ) );
     
    19361924        tr_peer * peer = peers[i];
    19371925        struct peer_atom * atom = peer->atom;
    1938 assert( atom == getExistingAtom( t, &peer->addr ) );
    19391926
    19401927        if( peer->progress >= 1.0 ) /* choke all seeds */
     
    20562043    const time_t             now = time( NULL );
    20572044    const struct peer_atom * atom = peer->atom;
    2058 assert( atom == getExistingAtom( t, &peer->addr ) );
    20592045
    20602046    /* if it's marked for purging, close it */
     
    22612247
    22622248    atom = peer->atom;
    2263 assert( atom == getExistingAtom( t, &peer->addr ) );
    22642249
    22652250    /* if we transferred piece data, then they might be good peers,
Note: See TracChangeset for help on using the changeset viewer.