Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
backup: check safepoint for last backup ts
Browse files Browse the repository at this point in the history
Signed-off-by: 5kbpers <[email protected]>
  • Loading branch information
5kbpers committed Mar 3, 2020
1 parent e462f80 commit c4357ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/backup/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ func (bc *Client) BackupRanges(
log.Error("check GC safepoint failed", zap.Error(err))
return err
}
err = CheckGCSafepoint(ctx, bc.mgr.GetPDClient(), lastBackupTS)
if err != nil {
log.Error("Check gc safepoint for last backup ts failed", zap.Error(err))
return err
}
if finished {
// Return error (if there is any) before finishing backup.
return err
Expand Down

0 comments on commit c4357ee

Please sign in to comment.