in sparkey/__init__.py [0:0]
def destroy(self):
"""Closes the writer, but does not flush anything.
All writes before the previous flush will be gone.
"""
if self._logwriter is not None:
self._logwriter.close()
self._logwriter = None
self._close_reader()
self._hashfile = None
self._logfile = None