Skip to content

Commit

Permalink
Flush writes on server after snapshot deletion (#1052)
Browse files Browse the repository at this point in the history
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
  • Loading branch information
PrasadG193 committed Jul 21, 2021
1 parent fbbd616 commit b20661c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/kopia/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ func DeleteSnapshot(ctx context.Context, backupID, path string) error {
if err != nil {
return errors.Wrapf(err, "Failed to load kopia snapshot with ID: %v", backupID)
}
return rep.DeleteManifest(ctx, m.ID)
if err := rep.DeleteManifest(ctx, m.ID); err != nil {
return err
}
return rep.Flush(ctx)
}

// findPreviousSnapshotManifest returns the list of previous snapshots for a given source,
Expand Down

0 comments on commit b20661c

Please sign in to comment.