From c23f0c939e2eb761872b0c4b4a0511a900e64626 Mon Sep 17 00:00:00 2001 From: ris <79858083+RidRisR@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:43:59 -0800 Subject: [PATCH] pitr: support log backup to s3 when object lock is enabled (#51210) close pingcap/tidb#51184 --- br/pkg/task/stream.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/br/pkg/task/stream.go b/br/pkg/task/stream.go index 4b0137163d5f2..07f77f10294cc 100644 --- a/br/pkg/task/stream.go +++ b/br/pkg/task/stream.go @@ -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)