Skip to content

Commit

Permalink
wish to be rid of getTid
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jul 18, 2016
1 parent 508ba13 commit 80f6a4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/ZEO/ClientStorage.py
Expand Up @@ -490,7 +490,7 @@ def record_iternext(self, next=None):
return self._call('record_iternext', next)

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)

def loadSerial(self, oid, serial):
Expand Down
2 changes: 2 additions & 0 deletions src/ZEO/StorageServer.py
Expand Up @@ -140,7 +140,9 @@ def setup_delegation(self):
if not info['supportsUndo']:
self.undoLog = self.undoInfo = lambda *a,**k: ()

# XXX deprecated: but ZODB tests use getTid. They shouldn't
self.getTid = storage.getTid

self.load = storage.load
self.loadSerial = storage.loadSerial
record_iternext = getattr(storage, 'record_iternext', None)
Expand Down
8 changes: 0 additions & 8 deletions src/ZEO/interfaces.py
Expand Up @@ -90,14 +90,6 @@ class IServeable(zope.interface.Interface):
"""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():
"""The current transaction being committed.
Expand Down

0 comments on commit 80f6a4b

Please sign in to comment.