-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(logbook): remove 'stranded' log histories on new dataset creation
if a user starts the save process but abandons it midway with SIGKILL qri's currently structured to terminate without any cleanup. This means the 'rollback' preocedure in an errored save never fires, and the dataset name is left taken but not in the user's list of datasets. This (admittedly hacky) solution checks for stray histories in this exact state (name and branch logs declared, no version save) and considers them safe to remove before creating a new replacement log.
- Loading branch information
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters