1. 29 Jun, 2005 2 commits
    • Tim Peters's avatar
      Repaired ReST markup in new UndoLog item. · e17b104a
      Tim Peters authored
      e17b104a
    • Tim Peters's avatar
      Collector 1822. · 7f1f6deb
      Tim Peters authored
      Make undo{Log,Info} arguments act like Python slice indices when
      both are non-negative.  The code used to do that before ZODB 3.4a9,
      but changed to match ZODB's UML documentation.  Alas, some
      (untested) code in Zope relied on the actual behavior (see the
      collector report).  Changed code, docs, and tests to bless the
      old behavior in these cases.
      
      DemoStorage.UndoLog:  this was wrong in several ways.  I'm still
      unsure about why it skips "packed" transactions.  That doesn't seem
      right, but I don't have time to wonder about that now.
      7f1f6deb
  2. 27 Jun, 2005 1 commit
  3. 24 Jun, 2005 1 commit
    • Tim Peters's avatar
      _triggerbase: Make new-style class, for better debugability. · b84e138b
      Tim Peters authored
      Windows trigger.__init__:  Simplify more.  The trigger can connect
      after the other end has done  bind() and listen(); no need to wait
      for an accept() too, and so no need to fiddle with blocking/
      non-blocking or "expected" socket.error's either.
      b84e138b
  4. 22 Jun, 2005 1 commit
    • Tim Peters's avatar
      Largely rewritten. · ebdf3a63
      Tim Peters authored
      remove_loop_callback():  There were two definitions of this function.
      Deleted one, changed the other to use enumerate().
      
      poll():  This was trying to repair a bug in Python 2.2's asyncore.poll().
      2.2 is no longer supported, so removed this poll().
      
      _start_loop(), _stop_loop():  Removed; functionality folded into
      reworked loop().
      
      loop():  The signature of asyncore.loop() changed in 2.4, but this
      still had "the old" signature.  Instead of sniffing the signature
      of the Python in use, this does a saner thing:  the original
      asyncore.loop is captured, and called from the body of this loop().
      That way, (A) we don't care what asyncore.loop's signature is; and,
      (B) we still call the original Python code, so debugging prints and
      breakpoints (etc) stuffed into Python's asyncore no longer "vanish
      by magic" when ZEO is used.
      ebdf3a63
  5. 21 Jun, 2005 1 commit
    • Tim Peters's avatar
      Massive refactoring, to move the bulk of the trigger code into · 80343fd8
      Tim Peters authored
      an OS-indepedent base class.
      
      __repr__:  Use the postive_id function to embed the machine address.
      Addresses with the high bit set trigger warnings before Python 2.4,
      and come out as negative numbers in 2.4+.
      
      Windows trigger.__init__:  Don't make 50 guesses at a port number
      to use, let Windows pick an available port for us.  Also documented
      the baffling single-thread socket setup dance, which took an hour to
      reverse-engineer (in large part because it used a bare "except" w/ no
      clue as to why).
      80343fd8
  6. 16 Jun, 2005 2 commits
  7. 14 Jun, 2005 1 commit
  8. 09 Jun, 2005 2 commits
  9. 06 Jun, 2005 4 commits
  10. 03 Jun, 2005 2 commits
  11. 02 Jun, 2005 4 commits
  12. 31 May, 2005 2 commits
  13. 27 May, 2005 3 commits
  14. 26 May, 2005 2 commits
  15. 20 May, 2005 3 commits
  16. 19 May, 2005 5 commits
  17. 18 May, 2005 1 commit
  18. 13 May, 2005 1 commit
  19. 12 May, 2005 2 commits
    • Tim Peters's avatar
      checkUndoInVersion(): Add an optional `hook` argument. · b8bcad99
      Tim Peters authored
      This gets called "in the middle" of the test, if specified.
      ZRS 1.5 uses this to pass a callback that arranges to start a
      ZRS secondary then.  ZRS had its own copy of this test, but
      it's a miserable & messy test, and the copy it had failed in
      5 different places when using ZODB 3.4 (it had gotten way of
      synch with changes since ZODB 3.2).
      
      Also removed all traces of the bizarre _x_dostore() method.
      Not sure what that was about, but if the comments were right
      we don't care about ZEO 1.0 anymore.
      b8bcad99
    • Tim Peters's avatar
      ZEO/tests/zeoserver.py, log(): repair broken interface · 6a7a79dc
      Tim Peters authored
      between old logging code and the use of Python's logging
      package.
      
      ZODB/tests/TransactionalUndoStorage.py, _exercise_info_indices():
      Jeez Louise, the new tests I added for undoInfo+undoLog work fine
      in ZODB, but break the ZRS tests(!).  They close the DB "too soon",
      and in one of the ZRS scenarios that leaves a recovering secondary
      without a primary to recover from.
      6a7a79dc