Skip to content

Commit

Permalink
fix: exclude last valid base snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
defbin committed Feb 5, 2024
1 parent 129819d commit c1ce699
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/backup/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ func isRequiredForOplogSlicing(ctx context.Context, cc connect.Client, lw primit
if err != nil {
return false, errors.Wrap(err, "get oplog range from previous backup")
}
if len(timelines) == 1 && timelines[0].Start <= prevRestoreTime.T {
// check if there is a gap (missed ops) in oplog range between previous and following backup restore_to time
if len(timelines) != 1 || prevRestoreTime.T < timelines[0].Start {
return false, nil
}

Expand Down

0 comments on commit c1ce699

Please sign in to comment.