Changeset 12462


Ignore:
Timestamp:
May 27, 2011, 11:26:05 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) #4283 "Remove 'Prefetch failed' error message" -- done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r12296 r12462  
    125125                           file->name, tr_strerror( err ) );
    126126            }
    127         } else if( ioMode == TR_IO_PREFETCH ) {
    128             const int rc = tr_prefetch( fd, fileOffset, buflen );
    129             if( rc < 0 ) {
    130                 /* (don't set "err" here... it's okay for prefetch to fail) */
    131                 tr_tordbg( tor, "prefetch failed for \"%s\": %s",
    132                            file->name, tr_strerror( errno ) );
    133             }
    134127        } else if( ioMode == TR_IO_WRITE ) {
    135128            const int rc = tr_pwrite( fd, buf, buflen, fileOffset );
     
    139132                           file->name, tr_strerror( err ) );
    140133            }
     134        } else if( ioMode == TR_IO_PREFETCH ) {
     135            tr_prefetch( fd, fileOffset, buflen );
    141136        } else {
    142137            abort();
Note: See TracChangeset for help on using the changeset viewer.