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

Commit

Permalink
backup: set gcttl to 5m if gcttl not set in TiDB (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer authored Jul 23, 2020
1 parent d5cf4b7 commit d904ae3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/backup/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ func (bc *Client) SetLockFile(ctx context.Context) error {

// SetGCTTL set gcTTL for client.
func (bc *Client) SetGCTTL(ttl int64) {
if ttl <= 0 {
ttl = DefaultBRGCSafePointTTL
}
bc.gcTTL = ttl
}

Expand Down

0 comments on commit d904ae3

Please sign in to comment.