Commit 80f6a4be authored by Jim Fulton's avatar Jim Fulton

wish to be rid of getTid

parent 508ba138
...@@ -490,7 +490,7 @@ class ClientStorage(ZODB.ConflictResolution.ConflictResolvingStorage): ...@@ -490,7 +490,7 @@ class ClientStorage(ZODB.ConflictResolution.ConflictResolvingStorage):
return self._call('record_iternext', next) return self._call('record_iternext', next)
def getTid(self, oid): def getTid(self, oid):
# XXX deprecated: used by storage server for full cache verification. # XXX deprecated: but ZODB tests use this. They shouldn't
return self._call('getTid', oid) return self._call('getTid', oid)
def loadSerial(self, oid, serial): def loadSerial(self, oid, serial):
......
...@@ -140,7 +140,9 @@ class ZEOStorage: ...@@ -140,7 +140,9 @@ class ZEOStorage:
if not info['supportsUndo']: if not info['supportsUndo']:
self.undoLog = self.undoInfo = lambda *a,**k: () self.undoLog = self.undoInfo = lambda *a,**k: ()
# XXX deprecated: but ZODB tests use getTid. They shouldn't
self.getTid = storage.getTid self.getTid = storage.getTid
self.load = storage.load self.load = storage.load
self.loadSerial = storage.loadSerial self.loadSerial = storage.loadSerial
record_iternext = getattr(storage, 'record_iternext', None) record_iternext = getattr(storage, 'record_iternext', None)
......
...@@ -90,14 +90,6 @@ class IServeable(zope.interface.Interface): ...@@ -90,14 +90,6 @@ class IServeable(zope.interface.Interface):
"""Interface provided by storages that can be served by ZEO """Interface provided by storages that can be served by ZEO
""" """
def getTid(oid):
"""The last transaction to change an object
Return the transaction id of the last transaction that committed a
change to an object with the given object id.
"""
def tpc_transaction(): def tpc_transaction():
"""The current transaction being committed. """The current transaction being committed.
......
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