Commit 9f0ad321 authored by Jeremy Hylton's avatar Jeremy Hylton

Use SlowMethodThread wrappers for undoInfo and undoLog.

parent c8e6d938
...@@ -147,8 +147,6 @@ class ZEOStorage: ...@@ -147,8 +147,6 @@ class ZEOStorage:
def setup_delegation(self): def setup_delegation(self):
"""Delegate several methods to the storage""" """Delegate several methods to the storage"""
self.undoInfo = self.__storage.undoInfo
self.undoLog = self.__storage.undoLog
self.versionEmpty = self.__storage.versionEmpty self.versionEmpty = self.__storage.versionEmpty
self.versions = self.__storage.versions self.versions = self.__storage.versions
self.history = self.__storage.history self.history = self.__storage.history
...@@ -270,6 +268,14 @@ class ZEOStorage: ...@@ -270,6 +268,14 @@ class ZEOStorage:
return oids return oids
return () 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): def tpc_begin(self, id, user, description, ext, tid, status):
if self._transaction is not None: if self._transaction is not None:
if self._transaction.id == id: if self._transaction.id == id:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment