1. 27 Nov, 2002 2 commits
  2. 26 Nov, 2002 4 commits
  3. 25 Nov, 2002 3 commits
  4. 24 Nov, 2002 4 commits
  5. 23 Nov, 2002 2 commits
  6. 22 Nov, 2002 6 commits
  7. 21 Nov, 2002 4 commits
    • Fred Drake's avatar
      - zLOG.severity(): Convenience function that converts a value to a · 0dafb70a
      Fred Drake authored
        severity level.  This allows the common names to be used for
        severities, not just integers.  This can make configuration data
        less obscure.
      
      - Refactor initialize():
        get_environment_info() pulls information from the environment
        variables, and this gets passed to initialize_log(), which does
        nothing to determine the source of the configuration data.
      
      - New method initialize_with_config():  Load information not provided
        by the environment from a ZConfig section.  This allows the
        environment to override a config file, and avoids having the
        application deal with the specific information needed to configure
        logging.
      0dafb70a
    • Barry Warsaw's avatar
      BerkeleyConfig: I think a reasonable checkpoint interval is 2 minutes. · dae72f0b
      Barry Warsaw authored
      Jim suggests that autopack never do a full gc'ing pack by default, so
      let's set the classicpack default to zero.
      
      __init__(): Pass the absolute path to the DB environment's db_home  as
      the name argument to the base class constructor.  This gives a unique
      value for sortKeys().
      
      env_from_string(): Keith Bostic suggests we stick with DB_RECOVER.
      dae72f0b
    • Barry Warsaw's avatar
      Bump the version number. · c114d675
      Barry Warsaw authored
      c114d675
    • Martijn Pieters's avatar
      Allow ModuleSecurityInfo objects to be reused even after they have been · 5ecd5692
      Martijn Pieters authored
      applied to ttheir modules.
      
      When trusted code or module refreshes ask for a ModuleSecurityInfo object
      that was already applied, previously a new one would be created, including
      new ones for the parent packages. This could cause declartion for *other*
      packages to be removed when this new Info object is reapplied later on.
      5ecd5692
  8. 20 Nov, 2002 2 commits
  9. 19 Nov, 2002 11 commits
    • Tim Peters's avatar
      Removed zlib line, since the source files no longer exist. I don't · 0ceb24ce
      Tim Peters authored
      know whether this file *should* be used anymore, though.  But if it isn't,
      I would have expected "someone" to have removed it by now.
      0ceb24ce
    • Tim Peters's avatar
    • Barry Warsaw's avatar
      Bump version number to 2.0beta2 · 4ad42534
      Barry Warsaw authored
      4ad42534
    • Barry Warsaw's avatar
      Normalize whitespace. · d11d706c
      Barry Warsaw authored
      d11d706c
    • Barry Warsaw's avatar
      _mk_dbhome(): Explicity disable the checkpointing thread, since it · ad1c795f
      Barry Warsaw authored
      just slows the tests down (because we might have to wait up to 10
      seconds for the thread to cleanly exit).
      ad1c795f
    • Barry Warsaw's avatar
      Because FullTestBase and MinimalTestBase both already inherit from · f6c271cf
      Barry Warsaw authored
      BerkeleyTestBase, one of the base classes is superfluous.
      
      FullOpenCloseTest: New class to make sure that the checkpointing
      thread gets properly shutdown.
      f6c271cf
    • Barry Warsaw's avatar
      b8274435
    • Barry Warsaw's avatar
      _setupDBs(): Use the new extended _setupDB() arguments for the · 0dc859e1
      Barry Warsaw authored
      DB_QUEUE tables.
      
      close(): We can really simplify this and make it more robust for when
      we add new tables, by relying on the fact that the base class
      maintains its own list of opened tables, and the base class close()
      method closes them in turn.
      
      autopack(): Default the gc argument to False.
      
      _collect_objs(), _mark(), _sweep(): Add an escape hatch for the pack
      operation inside the inner loops of each of these methods.  That way,
      we don't have to wait until the loops are finished to exit the pack
      operation, if stop() has been requested by the main thread.
      
      _Autopack: Use the _WorkThread base class.
      0dc859e1
    • Barry Warsaw's avatar
      _setupDBs(): The oidqueue table used to do double-duty, both during · 71f1008d
      Barry Warsaw authored
      the mark phase and during the sweep phase.  But this doesn't play
      nicely with the escape hatch for pack, since if we raise a PackStop,
      it's fine if we truncate the mark queue but not if we truncate the
      sweep queue.  So the latter is now separated into the delqueue table.
      
      Also, use the new extended _setupDB() arguments for the DB_QUEUE
      tables.
      
      close(): We can really simplify this and make it more robust for when
      we add new tables, by relying on the fact that the base class
      maintains its own list of opened tables, and the base class close()
      method closes them in turn.
      
      autopack(): Default the gc argument to False.
      
      _collect_revs(), _collect_objs(), _mark(), _sweep(): Add an escape
      hatch for the pack operation inside the inner loops of each of these
      methods.  That way, we don't have to wait until the loops are finished
      to exit the pack operation, if stop() has been requested by the main
      thread.
      
      AUTOPACK_CHECK_SLEEP removed.
      
      _Autopack: Use the _WorkThread base class.
      71f1008d
    • Barry Warsaw's avatar
      Normalize whitespace · b4488779
      Barry Warsaw authored
      b4488779
    • Barry Warsaw's avatar
      Based on suggestions by Toby, we're now throwing checkpointing into a · 3e91643e
      Barry Warsaw authored
      thread, instead of doing it every nth ZODB transaction.  We can
      actually provide a base class for both the checkpointing and
      autopacking threads here.  Changes here include:
      
      SLEEP_TIME: how often (in seconds) a background thread should wake up
      to see if there's work to do.
      
      True, False: Add these for older Pythons.
      
      PackStop: New class that acts as an escape hatch for pack operations.
      
      BerkeleyConfig:
          - change interval from 100 to 0.  Now that this controls the
            checkpointing thread, the current default is to not spawn the
            thread.  I'm probably going to change this once I figure out
            what a good value is.
      
      BerkeleyBase:
          - __init__(): Start the checkpointing thread if interval > 0
      
          - _setupDB(): Add some additional keyword args so that the QUEUE
            style tables can use this convenience method too.
      
          - close(): Be sure to stop and join the checkpointing thread
      
          - _docheckpoint(): Removed
      
          - _withtxn(): Catch PackStop escape hatch exceptions.  This one
            aborts the current Berkeley transaction but eats the exception.
            Also, don't call _docheckpoint() here.
      
           - docheckpoint(): New method which the checkpointing threads can
             call.
      
      env_from_string(): use DB_RECOVER_FATAL for autorecovery on open.
      
      _WorkThread: New base class for the checkpointing and autopacking
      threads.
      
      _CheckPoint: The common checkpointing thread class.
      3e91643e
  10. 18 Nov, 2002 1 commit
  11. 15 Nov, 2002 1 commit