• Tim Peters's avatar
    FileStoragePacker: open the filestorage in unbuffered mode. Transactions · cbec449b
    Tim Peters authored
    can still be in progress, and they're written to the same physical file via
    a different file object.  Using buffered I/O in the packer creates the
    possiblity for the packer to see stale data from its file object's stdio
    buffers.  This is now known to happen under Linux, Gentoo, OS X, Cygwin,
    and Debian.  It apparently doesn't happen under native Windows, which is
    why everyone except me has been seeing the new checkPackLotsWhileWriting
    test fail.
    
    This will probably need to be backported everywhere, but first I want to
    see in which new way checkPackLotsWhileWriting fails on 48 Linux boxes
    overnight <wink>.
    cbec449b
fspack.py 23.8 KB