Skip to content

Commit

Permalink
log-backup: set checkpoint-ts - 1 as safe-point-ts (#38249)
Browse files Browse the repository at this point in the history
close #38250
  • Loading branch information
joccau authored Oct 26, 2022
1 parent 9d56ee9 commit ac0d36b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions br/pkg/task/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ func RunStreamStop(
if err := streamMgr.setGCSafePoint(ctx,
utils.BRServiceSafePoint{
ID: buildPauseSafePointName(ti.Info.Name),
TTL: 0,
TTL: utils.DefaultStreamStartSafePointTTL,
BackupTS: 0,
},
); err != nil {
Expand Down Expand Up @@ -693,7 +693,7 @@ func RunStreamPause(
utils.BRServiceSafePoint{
ID: buildPauseSafePointName(ti.Info.Name),
TTL: cfg.SafePointTTL,
BackupTS: globalCheckPointTS - 1,
BackupTS: globalCheckPointTS,
},
); err != nil {
return errors.Trace(err)
Expand Down Expand Up @@ -766,7 +766,7 @@ func RunStreamResume(
if err := streamMgr.setGCSafePoint(ctx,
utils.BRServiceSafePoint{
ID: buildPauseSafePointName(ti.Info.Name),
TTL: 0,
TTL: utils.DefaultStreamStartSafePointTTL,
BackupTS: globalCheckPointTS,
},
); err != nil {
Expand Down

0 comments on commit ac0d36b

Please sign in to comment.