Skip to content

Commit

Permalink
pitr: support log backup to s3 when object lock is enabled (pingcap#5…
Browse files Browse the repository at this point in the history
  • Loading branch information
RidRisR authored Feb 28, 2024
1 parent 218f3af commit c23f0c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions br/pkg/task/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,9 @@ func NewStreamMgr(ctx context.Context, cfg *StreamConfig, g glue.Glue, isStreamS
}

opts := storage.ExternalStorageOptions{
NoCredentials: cfg.NoCreds,
SendCredentials: cfg.SendCreds,
NoCredentials: cfg.NoCreds,
SendCredentials: cfg.SendCreds,
CheckS3ObjectLockOptions: true,
}
if err = client.SetStorage(ctx, backend, &opts); err != nil {
return nil, errors.Trace(err)
Expand Down

0 comments on commit c23f0c9

Please sign in to comment.