Changeset 88346e2


Ignore:
Timestamp:
01/06/11 14:08:01 (10 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
3eb1058
Parents:
9672090
Message:
  • Fixed issue with corruption of the length value when performing threaded reads with compiler optimizations turned on - something bad is probably still happening somewhere but this seems to prevent it from breaking anything important :)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ior-thread.c

    ref07202 r88346e2  
    192192}
    193193
    194 static off_t thread_read(io_t *state, void *buffer, off_t len)
     194static off_t thread_read(io_t *state, void *buffer, const off_t to_read)
    195195{
    196196        int slice;
    197197        int copied=0;
    198198        int newbuffer;
     199        int len = to_read;
    199200
    200201        while(len>0) {
Note: See TracChangeset for help on using the changeset viewer.