1. 07 Mar, 2003 3 commits
    • Jeremy Hylton's avatar
      A bunch of small fixes. · d35cc16d
      Jeremy Hylton authored
      Make txn_factory an attribute of the base class.
      
      Raise an exception when prepare() returns False, rather than
      automatically aborting.
      
      Pass transaction object to Rollback() so that rollback() method can
      check state of transaction.
      
      Add IllegalStateError calls to prevent assertions from failing.
      XXX Should the manager duplicate these checks?
      
      Add suspend() and resume() to non-threaded txn manager.
      
      Fix bug that caused threaded suspend() to fail with KeyError for
      thread with no current transaction.
      d35cc16d
    • Jeremy Hylton's avatar
    • Jeremy Hylton's avatar
      Make the code follow the comment. · 9d24ddba
      Jeremy Hylton authored
      If an error occurs during tpc_finish, save the original exception just
      in case something goes wrong while cleaning up the message.
      9d24ddba
  2. 05 Mar, 2003 1 commit
    • Jeremy Hylton's avatar
      Merge jeremy-atomic-invalidation-branch. · fb8e39c8
      Jeremy Hylton authored
      Add suspend() and resume() to transaction manager API.
      Change implementation so that the thread-aware manager does not
      inherit from the thread-agnostic manager.
      Add suspended transaction state.
      fb8e39c8
  3. 04 Mar, 2003 5 commits
  4. 03 Mar, 2003 1 commit
  5. 28 Feb, 2003 4 commits
  6. 25 Feb, 2003 1 commit
  7. 20 Feb, 2003 5 commits
  8. 18 Feb, 2003 1 commit
  9. 11 Feb, 2003 3 commits
  10. 10 Feb, 2003 4 commits
  11. 07 Feb, 2003 1 commit
  12. 06 Feb, 2003 3 commits
  13. 05 Feb, 2003 4 commits
    • Barry Warsaw's avatar
      Attempt to reduce the disk I/O caused when running this script, by · 872961c5
      Barry Warsaw authored
      saving state in a pck pickle file, and doing an incremental parse the
      next time.  Specifically:
      
      Added -f and -r flags.  The -f flag points to the pickle state file
      (by default ./zeoqueue.pck).  The -r flag simply removes this file.
      This is useful for log rotation in the cron job, and yes rm would have
      been fine, but this option was requested by customers.
      
      process_file(): Added to Status class so that the processing is done
      here, where we can seek to a stored file position.
      
      Also added the secret -0 option for testing, which suppresses the file
      position seek (useful when the log file is split into chunks).
      
      Return the number of blocked clients as the exit status code.
      872961c5
    • Shane Hathaway's avatar
      Store _v_mount_point_ as a single-item tuple to hide from acquisition. · 14dd090d
      Shane Hathaway authored
      Also, avoid storing wrappers.
      14dd090d
    • Shane Hathaway's avatar
      a88a6aa0
    • Barry Warsaw's avatar
      Lots of changes, maybe not all of them good ;) · ac3195d5
      Barry Warsaw authored
      Added a module docstring as a usage() string.  Also add --help/-h.
      
      Rewrote two of the regexps as verbose re's for readability <wink>.
      Use named groups.
      
      Use True/False where appropriate.
      
      Txn: Added a `voters' attribute which is a list of clients seen doing
      a vote.  This is cleared on abort or finish.  Thus if we see a
      transaction with a non-empty voters list, we know that that
      transaction was blocked and it was the first voter that grabbed the
      lock.  This client (as an address) is displayed in the report.
      
      call_*(): Pass the client address into the call, as grep'd out of the
      zrpc-conn part of the line.  Only call_tpc_vote() really cares about
      this.
      
      Most controversial: process the entire file, line by line.
      Alternatives, if necessary:
          - go back to the original progressive skip backwards approach
          - add an incremental reader (recording file positions)
          - use as a filter
      ac3195d5
  14. 04 Feb, 2003 2 commits
  15. 31 Jan, 2003 2 commits