1. 20 Apr, 2001 2 commits
  2. 19 Apr, 2001 4 commits
  3. 18 Apr, 2001 5 commits
  4. 17 Apr, 2001 9 commits
  5. 16 Apr, 2001 13 commits
  6. 13 Apr, 2001 7 commits
    • Barry Warsaw's avatar
      Added some debugging aids: · b8f6efe9
      Barry Warsaw authored
          - DNE='nonexist' (it must be 8-bytes and this is easier to pick out)
      
          - _setupDBs(): use self._nextserial to choose the next serial
            number; this is easier to follow than the timestamps the base
            class uses.
      
          - _begin(): increment the next serial counter and assign that to
            self._serial
      
      Also,
      
      ObjectDoesNotExist: Removed, we use a straight KeyError instead since
      undoInfo() obviates the need for this hack.
      
      _vote(): Removed, base class implements this.
      
      _finish(): At the point we increment the refcounts of the objects
      refered to by the pickle, add a FIXME note.  Since objects can be
      revised multiple times in a single transaction, we need to make sure
      not to increment the refcounts too many times (not tested, so fix is
      deferred for later).
      
      abortVersion(): The API requires a VersionError if we try to abort the
      empty version.
      
      load(): The API requires that if we try to load an object on a
      non-existant version, or a version on which the object hasn't been
      changed, that we return the non-version revision of the object instead
      of raising an exception.
      
      transactionalUndo(): Fixed (as yet untested) bug in extraction of
      pack-protection flag from transaction's metadata.
      
      Rewrote the "revid <> tid" branch to check the commit log for any
      promised revisions to the object committed earlier in this
      transaction.  It's possible to revise an object multiple times in the
      same transaction.  Along those lines, record modified oids in a set
      (i.e. dictionary) so we don't get duplicates in the return value.
      
      Use write_object_undo() instead of write_moved_object() so previous
      revisions in the same transaction get recorded by the commit log.
      
      undoLog(): The API defines default arguments, and their semantics, so
      use them!  Also fix typos in cursor method calls and in unpacking the
      user/desc/ext information in the transaction metadata.
      b8f6efe9
    • 's avatar
      Merged fixes for typos, missing docs · 98f0dea1
      authored
      98f0dea1
    • Barry Warsaw's avatar
      _vote(): Removed, base class implements it. · d039974a
      Barry Warsaw authored
      d039974a
    • Barry Warsaw's avatar
      _vote(): Actually, this behavior is shared by both Full and Minimal · 721d56d4
      Barry Warsaw authored
      storages, so it makes sense to move it from there to the base
      class.  _vote() now puts the CommitLog into the promised() state.
      721d56d4
    • Barry Warsaw's avatar
      tpc_vote(), _vote(): Removed, the BaseStorage base class implements · a4e47054
      Barry Warsaw authored
      the infrastructure.
      a4e47054
    • Evan Simpson's avatar
      Fix keywords arguments. · 2ff975f6
      Evan Simpson authored
      2ff975f6
    • Barry Warsaw's avatar
      write_object_undo(): Use this method instead of write_moved_object() · 82514f73
      Barry Warsaw authored
      to record an undo transaction for an object.  This will remember the
      previous revids for the undone objects, which is necessary because a
      transaction may undo several revisions of an object.
      
      get_prevrevid(): Given an oid, get the recorded previous revid for the
      object.
      82514f73