1. 24 Apr, 2001 3 commits
    • Barry Warsaw's avatar
      _zaprevision(): When garbage collecting an object, we need to do a · 46815aff
      Barry Warsaw authored
      little more work.  First, we need to delete all the entries for
      oid+vid records in the currentVersions table, then if we delete all
      thosey vid entries, garbage collect the version->vid and vid->version
      tables.
      
      pack(): Fix a slight misunderstanding of the semantics; if an object
      isn't pointed to by root object (i.e. the magic \0\0\0\0\0\0\0\0 oid),
      then it's current record doesn't keep it alive.
      46815aff
    • Barry Warsaw's avatar
      Fix some tests for commit log turd detection. Specifically, · aa3de9c1
      Barry Warsaw authored
      checkCreateWithFilename(), checkCloseDoesUnlink(), checkDel(): Don't
      unlink explicitly, but assert that the file is unlinked after close.
      
      BaseSetupTearDown.tearDown(): It's okay if the tear down unlink fails
      because the file already doesn't exist.
      
      suite(): Use makeSuite.
      aa3de9c1
    • Barry Warsaw's avatar
      CommitLog.__init__(): Use an unlink flag to record what the behavior · 34b88faf
      Barry Warsaw authored
      should be on close.  By default, we unlink the file unless we were
      passed a file-like object, in which case we don't unlink by default
      (because the client owns the file).
      
      close(): Only close the file if the file isn't already closed.  Only
      unlink if the default unlink flag is true, or we're explicitly told to
      unlink via the argument.  This should fix the logfile turd problem.
      34b88faf
  2. 23 Apr, 2001 5 commits
  3. 21 Apr, 2001 3 commits
    • Chris McDonough's avatar
      Windows compatibility and --today flag. · fbcf2b5c
      Chris McDonough authored
      fbcf2b5c
    • Andreas Jung's avatar
      fix for collector #2178 (zopesh issue) · 0f055c5c
      Andreas Jung authored
      0f055c5c
    • Chris McDonough's avatar
      Adding request log profiler. · 82bd5aa9
      Chris McDonough authored
      Usage: requestprofiler.py filename [--sort=spec] [--top=n] [--verbose] [--help]
      
      Provides a profile of the detailed (-M) Zope request log.
      
      Each line in the profile indicates information about a Zope method (URL)
      collected via the detailed request log (the -M log).
      
      'filename' is the path to the '-M' log that contains detailed request data.
      
      If a 'sort' value is specified, sort the profile info by the spec. The sort
      spec may be any of 'hits', 'hangs', 'max', 'min', 'mean', 'median', or 'total'.
      The default is 'total'.  The sort order is decending unless indicated.
      
        'hits'       -- the number of hits against the method
        'hangs'      -- the number of unfinished requests to the method
        'max'        -- the maximum time in secs taken by a request to this method
        'min'        -- the minimum time in secs taken by a request to this method
        'mean'       -- the mean time in secs taken by a request to this method
        'median'     -- the median time in secs taken by a request to this method
        'total'      -- the total time in secs across all requests to this method
        'url'        -- the URL/method name (ascending)
      
      If the 'top' argument is specified, only report on the top 'n' requests in
      the log (as per the sort).  The default is 10.
      
      If the 'verbose' argument is specified, do not trim url to fit into 80 cols."""
      82bd5aa9
  4. 20 Apr, 2001 4 commits
    • Barry Warsaw's avatar
      _zaprevision(): Watch out for the key being missing from the metadata · 3e5f106f
      Barry Warsaw authored
      table; use a safer way of pulling out the lrevid.
      
      pack(): The previous logic was broken, now we first gather up all the
      oids of the objects affected by packable transactions, then we cruise
      through the metadata records of each of those in a separate loop.
      
      Watch out for the call to c.set_range() on the txnoids table to raise
      a DBNotFoundError.  This just means we're trying to access a time
      stamp past the last one in this table, so just use c.last() if that
      happens, and pack all transactions.
      
      When cruising through the txnoids table, stop when you see the first
      PROTECTED_TRANSACTION.  That means that we've already packed back to
      this transaction (Jim, is this right?  Would we ever want to re-pack a
      transaction that's already been packed?)
      3e5f106f
    • Andreas Jung's avatar
      partial regex free - and still working :-) · f983c923
      Andreas Jung authored
      f983c923
    • Andreas Jung's avatar
      StructuredText locale added · 9b3cd6c0
      Andreas Jung authored
      9b3cd6c0
    • Andreas Jung's avatar
      added locale support · 9ae055f8
      Andreas Jung authored
      9ae055f8
  5. 19 Apr, 2001 4 commits
  6. 18 Apr, 2001 5 commits
  7. 17 Apr, 2001 9 commits
  8. 16 Apr, 2001 7 commits