• Tim Peters's avatar
    By popular demand, FileStorage.pack() no longer propagates a · 61df0040
    Tim Peters authored
        FileStorageError:  The database has already been packed to a
        later time or no changes have been made since the last pack
    
    exception.  Instead that message is logged (at INFO level), and
    the pack attempt simply returns then (no pack is performed).
    
    Incidentally, this should repair frequent reports of failure in the
    new checkPackLotsWhileWriting test.  On non-Windows systems, it
    seems that the worker thread often didn't get enough cycles to commit
    a change between the main thread's attempts to run pack() (and so
    the exception above got raised then).
    61df0040
FileStorage.py 68.8 KB