Commit aa0032fb authored by Jim Fulton's avatar Jim Fulton

Removed unneeded loadEx and added missing close and cleanup methods.

parent ed927c78
......@@ -74,19 +74,16 @@ class MinimalMemoryStorage(BaseStorage, object):
def _clear_temp(self):
pass
def loadEx(self, oid, version):
def load(self, oid, version):
self._lock_acquire()
try:
assert not version
tid = self._cur[oid]
self.hook(oid, tid, version)
return self._index[(oid, tid)], tid, ""
self.hook(oid, tid, '')
return self._index[(oid, tid)], tid
finally:
self._lock_release()
def load(self, oid, version):
return self.loadEx(oid, version)[:2]
def _begin(self, tid, u, d, e):
self._txn = Transaction(tid)
......@@ -145,6 +142,11 @@ class MinimalMemoryStorage(BaseStorage, object):
finally:
self._lock_release()
def close(self):
pass
cleanup = close
class MinimalTestSuite(StorageTestBase.StorageTestBase,
BasicStorage.BasicStorage,
MTStorage.MTStorage,
......
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