1. 20 Sep, 2002 1 commit
    • Guido van Rossum's avatar
      Address Chris McDonough's request: make the ClientStorage() · f8411024
      Guido van Rossum authored
      constructor signature backwards compatible with ZEO 1.  This means
      adding wait_for_server_on_startup and debug options.
      wait_for_server_on_startup is an alias for wait, which makes the
      argument decoding for these two a little tricky.  debug is ignored.
      
      Also change the default of wait to True, like it was in ZEO 1.  This
      is less likely to screw naive customers.
      f8411024
  2. 19 Sep, 2002 8 commits
  3. 18 Sep, 2002 2 commits
    • Guido van Rossum's avatar
      Cache policy improvement: · d1c6a2c8
      Guido van Rossum authored
      When load() finds a hit in the non-current file, copy it to the
      current file (except when this would cause a cache flip).
      
      It is hoped that this improves the cache performance.
      
      (Now merged into the trunk!  Jeremy & Jim want this in the ZEO and ZODB3 beta2 releases.)
      d1c6a2c8
    • Guido van Rossum's avatar
      Fix a mysterious Windows hang: checkReconnectSwitch() would fail. · 5cf04dac
      Guido van Rossum authored
      The fix is to change testConnection() to only retry the register()
      call with the read-only flag set when we're not alrady connected.
      But I don't understand why this fix is needed; I'll keep debugging.
      5cf04dac
  4. 17 Sep, 2002 26 commits
  5. 16 Sep, 2002 3 commits
    • Jeremy Hylton's avatar
      Rewrite new_persistent_id() to make it clear what's going on. · e94f7e66
      Jeremy Hylton authored
      Reformat all the code to use Python style.
      
      We got an undiagnosed bug report for coptimization, which lead to an
      attempt at code review.
      
      Break up a the large new_persistent_id() function into several helpers
      -- get_class(), get_class_tuple(), and set_oid().  Each function now
      does a little less.  Don't reuse variable names for random purposes.
      e94f7e66
    • Guido van Rossum's avatar
      This checkin contains changes (by me) that will allow multiple · 121f2e20
      Guido van Rossum authored
      parallel outstanding calls.  However it also contains code (by Jeremy,
      with one notifyAll() call added by me) that enforces the old rule of a
      single outstanding call.  This is hopefully unnecessessary, but we
      haven't reviewed the server side yet to make sure that that's really
      the case (the server was until now getting serialized calls per
      connection).
      121f2e20
    • Guido van Rossum's avatar
      Fix a subtle bug that caused hard-to-find hangs on Win98 in · f89b404b
      Guido van Rossum authored
      checkCommitLock2On{Abort,Commit}.  When
      ZEOStorage.notifyDisconnected() calls self.tpc_abort(), it is possible
      that self.strategy is DelayedCommitStrategy.  In that case,
      ZEOStorage.tpc_abort() should *not* call self._handle_waiting(),
      otherwise there could be two ZEOStorage instances whose strategy is
      ImmediateCommitStrategy!
      f89b404b