1. 17 Mar, 2004 2 commits
    • 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
    • Tim Peters's avatar
      checkPackLotsWhileWriting: remove excess generality. Only one client · 85a14d2b
      Tim Peters authored
      thread is interesting here, so removed the hair catering to the possiblity
      of N > 1 threads.
      85a14d2b
  2. 16 Mar, 2004 11 commits
  3. 15 Mar, 2004 1 commit
  4. 13 Mar, 2004 3 commits
    • Jeremy Hylton's avatar
      Revise Connection. · 57852925
      Jeremy Hylton authored
      Make _added_during_commit a regular instance variable.  Don't use
      try/finally to reset it; just clear it at the start of a transaction.
      XXX There was a test that needed to be removed, but it seemed to be
      just a shallow test that try/finally was used.  Can't see any feature
      that depends on specific of error handling: The txn is going to abort.
      
      Remove unused _opened instance variable.
      Split commit() into two smaller parts.
      Get rid of extra manipulation of _creating.
      Don't look for _p_serial of None; z64 is now required.
      Undo local variable aliases in subtransaction methods.
      
      Also, trivial change to pickle cache API -- get() works like dict get().
      57852925
    • Jeremy Hylton's avatar
      Consistent formatting. · ea9b395b
      Jeremy Hylton authored
      ea9b395b
    • Tim Peters's avatar
      New (but disabled for now) test checkPackLotsWhileWriting reliably dies · b78b9dcd
      Tim Peters authored
      with
      
          CorruptedError:  ... transaction with checkpoint flag set
      
      on my box when doing the ZEO flavor of FileStorage.  This is like the
      other pack-while-writing tests, but uses only 1 client thread that does
      twice as much, and packs repeatedly for so long as that thread runs.  I
      usually see it fail before the fourth pack attempt.
      b78b9dcd
  5. 12 Mar, 2004 17 commits
  6. 11 Mar, 2004 6 commits