[Zodb-checkins] CVS: ZODB3/bsddb3Storage/bsddb3Storage - BerkeleyBase.py:1.19

Barry Warsaw barry@wooz.org
Tue, 3 Sep 2002 14:07:30 -0400


Update of /cvs-repository/ZODB3/bsddb3Storage/bsddb3Storage
In directory cvs.zope.org:/tmp/cvs-serv30914

Modified Files:
	BerkeleyBase.py 
Log Message:
env_from_string(): Added config.logdir to specify a different log
directory.


=== ZODB3/bsddb3Storage/bsddb3Storage/BerkeleyBase.py 1.18 => 1.19 ===
--- ZODB3/bsddb3Storage/bsddb3Storage/BerkeleyBase.py:1.18	Fri Aug 23 13:10:30 2002
+++ ZODB3/bsddb3Storage/bsddb3Storage/BerkeleyBase.py	Tue Sep  3 14:07:30 2002
@@ -92,11 +92,15 @@
     - kbytes is passed directly to txn_checkpoint()
 
     - min is passed directly to txn_checkpoint()
+
+    - logdir if not None, is passed to the environment's set_lg_dir() method
+      before it is opened.
     """
     numlocks = DEFAULT_MAX_LOCKS
     interval = 100
     kbyte = 0
     min = 0
+    logdir = None
 
 
 
@@ -321,6 +325,8 @@
         # already exists
     env = db.DBEnv()
     env.set_lk_max_locks(config.numlocks)
+    if config.logdir is not None:
+        env.set_lg_dir(config.logdir)
     env.open(envname,
              db.DB_CREATE       # create underlying files as necessary
              | db.DB_RECOVER    # run normal recovery before opening