'Resets a dirty flag for the current thread and code streak. This can be used
to decide in a managed block of code to decide whether a commit or rollback
should happen.'

def set_clean(self):

    self._dirty = False
    self.clean_savepoints()
