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()
def tpc_begin(self): """Prepare temp space for objects to cache.""" self.queue = AutoTemporaryFile() self.queue_contents = {}
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 = {}