Ticket #2551: prefetch-verify.patch

File prefetch-verify.patch, 441 bytes (added by jch, 11 years ago)
  • libtransmission/inout.c

    diff --git a/libtransmission/inout.c b/libtransmission/inout.c
    index a641be6..6f63464 100644
    a b recalculateHash( tr_torrent * tor, 
    343343    SHA1_Init( &sha );
    344344    bytesLeft = tr_torPieceCountBytes( tor, pieceIndex );
    345345
     346    tr_ioPrefetch( tor, pieceIndex, offset, bytesLeft );
     347
    346348    while( bytesLeft )
    347349    {
    348350        const int len = MIN( bytesLeft, buflen );