We saw a weird crash of a test run once in _update_cache() where
self._tbuf was unexpectedly None. The only way this can happen is when the storage is closed (probably by a different thread); close() sets _tbuf to None. It turns out that a TransactionBuffer instance can safely be closed more than once, so there's no need to set _tbuf to None in the close() method.
Showing
Please register or sign in to comment