1. 20 Mar, 2001 15 commits
  2. 19 Mar, 2001 6 commits
  3. 17 Mar, 2001 12 commits
  4. 16 Mar, 2001 7 commits
    • Barry Warsaw's avatar
      test_commit.py -> test_minimal.py · 1223f49f
      Barry Warsaw authored
      1223f49f
    • Barry Warsaw's avatar
      39855149
    • Barry Warsaw's avatar
    • Barry Warsaw's avatar
    • Barry Warsaw's avatar
      Essentially, this is a rewrite of the Berkeley versionless, undoless · 47622ceb
      Barry Warsaw authored
      storage.  Some of the internal operations have changed, coding style
      is a bit less compact.  Other substantive changes include:
      
      - The implementation now uses the CommitLog.PacklessLog temporary
        transaction log class.  This avoids the problem with tempfiles being
        unlinked as soon as they are created (and then lost if the process
        exits abnormally).
      
      - Minimal is now derived from BerkeleyBase instead of Base.
      
      - Some updates to use the latest PyBSDDB API, e.g. get() instead of
        has_key().
      
      - The table names have changed to 'serials' and 'pickles'.
      
      - tpc_vote() is now supported.  BerkeleyBase.tpc_vote() calls
        Minimal._vote() and this is where the commit log is placed into the
        promised state.
      
      - The semantics are now that when the transaction successfully
        commits, the commit log file is deleted.  This may need to be
        changed to either a truncation-on-close, or scribble-zero-in-header
        approach for performance reasons.
      47622ceb
    • Barry Warsaw's avatar
      BerkeleyBase.py -- contains a rewritten base class for both the Full · 1f28c122
      Barry Warsaw authored
      and Minimal Berkeley storages.  It derives from
      ZODB.BaseStorage.BaseStorage and supports the tpc_vote() method
      wrapper calling _vote() on the derived class.
      
      CommitLog.py -- contains the temporary transaction commit log file
      classes used to hold transaction changes until they can be committed
      to Berkeley.
      1f28c122
    • Barry Warsaw's avatar
      PyUnit tests for BSDDB storage. · 73e8930f
      Barry Warsaw authored
      test_commitlog.py tests creation, deletion, state transitions,
      low-level and high-level APIs of the CommitLog and derived classes.
      
      test_create.py tests creation of the Berkeley files when a storage is
      created.
      
      test_virgin.py tests that a newly minted Berkeley storage is empty,
      and tests the first commits to such a new storage.
      73e8930f