Exemple #1
0
 def __init__(self):
     # start with a fresh in-memory buffer instead of reusing one that might
     # already be spooled to disk.
     # TODO: An alternate idea would be a temporary sqlite database.
     self._queue = AutoTemporaryFile()
     # {oid: (startpos, endpos, prev_tid_int)}
     self._queue_contents = OID_OBJECT_MAP_TYPE()
Exemple #2
0
 def tpc_begin(self):
     """Prepare temp space for objects to cache."""
     self.queue = AutoTemporaryFile()
     self.queue_contents = {}
Exemple #3
0
 def tpc_begin(self):
     """Prepare temp space for objects to cache."""
     # start with a fresh in-memory buffer instead of reusing one that might
     # already be spooled to disk.
     self.queue = AutoTemporaryFile()
     self.queue_contents = {}