1. 25 Jan, 2002 6 commits
    • Jeremy Hylton's avatar
      Code cleanup. · a8b6c61d
      Jeremy Hylton authored
      Replace three small integers with symbolic constants.
          TRANS_HDR_LEN = 23
          DATA_HDR_LEN = 42
          DATA_VERSION_HDR_LEN = 58
      The constants make it easier to remember what kind of header is being
      read and/or what kind of offset is being computed.
      
      Refactor commitVersion():
          - Keep locking & arg checking in commitVersion(), but move actual
            commit logic to _commitVersion().  This removes a level of
            indentation.
      
          - Remove local vars that alias attributes of other vars
      
      Add a few more POSKeyError exceptions.
      a8b6c61d
    • Jeremy Hylton's avatar
    • Jeremy Hylton's avatar
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
      Commit changes from the short-lived "Recovery" branch to the trunk. · 6c7d0c42
      Guido van Rossum authored
      Highlights:
      
      BaseStorage.py:
      
      Fix copyTransactionsFrom() when commitVersion(), abortVersion() or
      transactionalUndo() is used.
      
      FileStorage.py:
      
      Add restore() method, which can store data records corresponding to
      undo or version manipulations; add close() method to FileIterator
      class; raise POSKeyError instead of KeyError for bad keys, to ensure
      safe formatting of transaction ids (binary strings) in tracebacks.
      
      POSException.py:
      
      Add POSKeyError.
      
      fsdump.py:
      
      Deal with records indicating the undo or abort of a version doing
      object creation.
      
      tests/IteratorStorage.py:
      
      New unittests for the iterator() method and interface of the
      storage API; new unit tests for extended file iterators; new class,
      IteratorDeepCompare; test of the iterator .close() method.
      
      tests/testFileStorage.py:
      
      Add class FileStorageRecoveryTest, which adds two simple tests for
      copyTransactionsFrom().  This indirectly tests the new restore()
      method.
      6c7d0c42
  2. 24 Jan, 2002 11 commits
  3. 23 Jan, 2002 6 commits
  4. 22 Jan, 2002 2 commits
  5. 21 Jan, 2002 6 commits
  6. 17 Jan, 2002 2 commits
    • Jeremy Hylton's avatar
      Merge Standby-branch to trunk (mostly). · dfdcb79b
      Jeremy Hylton authored
      The Standby-branch was branched from the StandaloneZODB-1_0-branch,
      which includes the BTrees-fsIndex code.  I didn't include that change
      in the merge, but everything else.  Terse summary follows:
      
      BTreeModuleTemplate.c:
          Greg Ward's ConflictError patch
      dfdcb79b
    • Jeremy Hylton's avatar
      Merge Standby-branch to trunk (mostly). · c2eed46c
      Jeremy Hylton authored
      The Standby-branch was branched from the StandaloneZODB-1_0-branch,
      which includes the BTrees-fsIndex code.  I didn't include that change
      in the merge, but everything else.  Terse summary follows:
      
      BaseStorage.py:
          Add read-only storage feature.
          Add TransactionRecord and DataRecord marker classes for iteration.
          Reformat some lines.
      
      FileStorage.py:
          Add read-only storage feature.
          Greg Ward's ConflictError patch
          Reformat some lines.
          Add lastTransaction(), lastSerialno().
          Add bounds support to iterator().
          Use TransactionRecord and DataRecord.
      
      Connection.py:
      DemoStorage.py:
      MappingStorage.py:
          Greg Ward's ConflictError patch
      
      POSException.py:
          Greg Ward's ConflictError patch
          Add ReadOnlyError.
      c2eed46c
  7. 11 Jan, 2002 2 commits
  8. 09 Jan, 2002 2 commits
  9. 07 Jan, 2002 1 commit
  10. 21 Dec, 2001 2 commits