Commit d1631cf2 authored by Chris McDonough's avatar Chris McDonough

Collector 1341: TemporaryStorage can't be used under a ZEO server.

parent 421beb93
...@@ -71,6 +71,10 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage): ...@@ -71,6 +71,10 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
self._recently_gc_oids = [None for x in range (RECENTLY_GC_OIDS_LEN)] self._recently_gc_oids = [None for x in range (RECENTLY_GC_OIDS_LEN)]
self._oid = '\0\0\0\0\0\0\0\0' self._oid = '\0\0\0\0\0\0\0\0'
def lastTransaction(self):
""" Return tid for last committed transaction (for ZEO) """
return self._ltid
def __len__(self): def __len__(self):
return len(self._index) return len(self._index)
...@@ -173,6 +177,7 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage): ...@@ -173,6 +177,7 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
serial=self._tid serial=self._tid
index=self._index index=self._index
opickle=self._opickle opickle=self._opickle
self._ltid = tid
# iterate over all the objects touched by/created within this # iterate over all the objects touched by/created within this
# transaction # transaction
......
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