John Darrington <j...@darrington.wattle.id.au> writes: > So it would seem that it is unsafe (even on GNU/Linux) not to seek (or flush) > before switching between reading and writing. > > I sent Harry a patch which basically disabled this optimisation completely, > and > Henry's report suggested that this fixed the problem, but caused the operation > to take a lot longer to run (not suprising). I suggest that the correct fix > should involve a flag in the ext_array struct which records the direction of > the most recent operation (read or write) and ensures that the seek is always > done if the direction has changed.
Wow, good detective work. Yes, that sounds like a good solution to me. _______________________________________________ pspp-dev mailing list pspp-dev@gnu.org https://lists.gnu.org/mailman/listinfo/pspp-dev