deleteSnapshotFromLocalDB silently swallows all errors and always returns nil #25
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
deleteSnapshotFromLocalDBininternal/vaultik/snapshot.gologs errors but always returnsnil, even when every operation fails. Callers (includingPurgeSnapshotsandPruneDatabase) assume success and proceed, potentially leaving the database in an inconsistent state.Impact
PurgeSnapshotsreports successful deletion even when the database still contains the snapshotRemoveSnapshottells the user the snapshot was removed when it may not have beenFix
Return the first error encountered instead of swallowing all errors.