Changeset 5046


Ignore:
Timestamp:
Feb 16, 2008, 5:13:56 AM (14 years ago)
Author:
charles
Message:

fix bug that could cause some pieces to be unnecessarily rechecked the second time they were loaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/verify.c

    r5045 r5046  
    1111 */
    1212
    13 #include <assert.h>
    14 #include <stdlib.h>
    15 #include <string.h>
    16 
    17 #include <sys/types.h>
    1813#include <sys/stat.h>
    19 #include <unistd.h>
    20 
    21 #include <openssl/sha.h>
    2214
    2315#include "transmission.h"
    2416#include "completion.h"
    25 #include "crypto.h"
    26 #include "fastresume.h"
    27 #include "fdlimit.h"
     17#include "fastresume.h" /* tr_fastResumeSave() */
    2818#include "inout.h"
    2919#include "list.h"
    3020#include "platform.h"
    31 #include "peer-mgr.h"
    32 #include "stats.h"
    3321#include "torrent.h"
    34 #include "utils.h"
     22#include "utils.h" /* tr_buildPath */
    3523#include "verify.h"
    3624
     
    10795                    tr_torrentSetHasPiece( tor, i, FALSE );
    10896            }
    109                
    110             tr_torrentSetPieceChecked( tor, i, TRUE );
    111         }
     97        }
     98
     99        tr_torrentSetPieceChecked( tor, i, TRUE );
    112100    }
    113101}
Note: See TracChangeset for help on using the changeset viewer.