[Zodb-checkins] CVS: ZODB4/BDBStorage - BerkeleyBase.py:2.1

Barry Warsaw barry@wooz.org
Wed, 4 Dec 2002 17:40:26 -0500


Update of /cvs-repository/ZODB4/BDBStorage
In directory cvs.zope.org:/tmp/cvs-serv30003

Modified Files:
	BerkeleyBase.py 
Log Message:
ThreadLock is gone in ZODB4; use a threading.Lock() for our packlock.


=== ZODB4/BDBStorage/BerkeleyBase.py 2.0 => 2.1 ===
--- ZODB4/BDBStorage/BerkeleyBase.py:2.0	Wed Dec  4 14:47:17 2002
+++ ZODB4/BDBStorage/BerkeleyBase.py	Wed Dec  4 17:40:26 2002
@@ -32,7 +32,6 @@
 from ZODB.lock_file import lock_file
 from ZODB.BaseStorage import BaseStorage
 from ZODB.Serialize import findrefs
-import ThreadLock
 import zLOG
 
 GBYTES = 1024 * 1024 * 1000
@@ -182,7 +181,7 @@
         BaseStorage.__init__(self, envdir)
 
         # Instantiate a pack lock
-        self._packlock = ThreadLock.allocate_lock()
+        self._packlock = threading.Lock()
         self._autopacker = None
         self._stop = self._closed = False
         # Initialize a few other things