Commit 77551779 authored by Jeremy Hylton's avatar Jeremy Hylton

Add lastTransaction() method to db.

Don't use bpthread; just use thread.
parent 68624758
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
############################################################################## ##############################################################################
"""Database objects """Database objects
$Id: DB.py,v 1.58 2003/12/24 16:02:00 jeremy Exp $""" $Id: DB.py,v 1.59 2004/01/06 21:44:25 jeremy Exp $"""
__version__='$Revision: 1.58 $'[11:-2] __version__='$Revision: 1.59 $'[11:-2]
import cPickle, cStringIO, sys, POSException, UndoLogCompatible import cPickle, cStringIO, sys, POSException, UndoLogCompatible
from Connection import Connection from Connection import Connection
from bpthread import allocate_lock from thread import allocate_lock
from Transaction import Transaction, get_transaction from Transaction import Transaction, get_transaction
from referencesf import referencesf from referencesf import referencesf
from time import time, ctime from time import time, ctime
...@@ -282,6 +282,9 @@ class DB(UndoLogCompatible.UndoLogCompatible, object): ...@@ -282,6 +282,9 @@ class DB(UndoLogCompatible.UndoLogCompatible, object):
def getCacheSize(self): def getCacheSize(self):
return self._cache_size return self._cache_size
def lastTransaction(self):
return self._storage.lastTransaction()
def getName(self): return self._storage.getName() def getName(self): return self._storage.getName()
def getPoolSize(self): return self._pool_size def getPoolSize(self): return self._pool_size
......
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