[Zodb-checkins] CVS: ZODB3/ZEO - StorageServer.py:1.57
Jeremy Hylton
jeremy@zope.com
Wed, 11 Sep 2002 17:59:32 -0400
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv8442
Modified Files:
StorageServer.py
Log Message:
Use SlowMethodThread wrappers for undoInfo and undoLog.
=== ZODB3/ZEO/StorageServer.py 1.56 => 1.57 ===
--- ZODB3/ZEO/StorageServer.py:1.56 Wed Sep 11 17:40:39 2002
+++ ZODB3/ZEO/StorageServer.py Wed Sep 11 17:59:31 2002
@@ -147,8 +147,6 @@
def setup_delegation(self):
"""Delegate several methods to the storage"""
- self.undoInfo = self.__storage.undoInfo
- self.undoLog = self.__storage.undoLog
self.versionEmpty = self.__storage.versionEmpty
self.versions = self.__storage.versions
self.history = self.__storage.history
@@ -269,6 +267,14 @@
map(lambda oid: (oid, ''), oids))
return oids
return ()
+
+ # undoLog and undoInfo are potentially slow methods
+
+ def undoInfo(self, first, last, spec):
+ return run_in_thread(self.__storage.undoInfo, first, last, spec)
+
+ def undoLog(self, first, last):
+ return run_in_thread(self.__storage.undoLog, first, last)
def tpc_begin(self, id, user, description, ext, tid, status):
if self._transaction is not None: