From 02598ab50bf15a078904fa4dd44f6bb816ebe01a Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Thu, 12 Sep 2024 17:10:46 -0600 Subject: [PATCH] Small fix Signed-off-by: Florent Poinsard --- go/vt/mysqlctl/s3backupstorage/s3.go | 1 - go/vt/mysqlctl/xtrabackupengine.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/go/vt/mysqlctl/s3backupstorage/s3.go b/go/vt/mysqlctl/s3backupstorage/s3.go index 6947f02fa6d..1af1362ae30 100644 --- a/go/vt/mysqlctl/s3backupstorage/s3.go +++ b/go/vt/mysqlctl/s3backupstorage/s3.go @@ -181,7 +181,6 @@ func (bh *S3BackupHandle) AddFile(ctx context.Context, filename string, filesize u.PartSize = partSizeBytes }) object := objName(bh.dir, bh.name, filename) - log.Infof("objName: %v", object) sendStats := bh.bs.params.Stats.Scope(stats.Operation("AWS:Request:Send")) // Using UploadWithContext breaks uploading to Minio and Ceph https://github.com/vitessio/vitess/issues/14188 _, err := uploader.Upload(context.Background(), &s3.PutObjectInput{ diff --git a/go/vt/mysqlctl/xtrabackupengine.go b/go/vt/mysqlctl/xtrabackupengine.go index e6d02eedc1d..784d718af26 100644 --- a/go/vt/mysqlctl/xtrabackupengine.go +++ b/go/vt/mysqlctl/xtrabackupengine.go @@ -277,7 +277,7 @@ func (be *XtrabackupEngine) executeFullBackup(ctx context.Context, params Backup if err != nil { return BackupUnusable, vterrors.Wrapf(err, "cannot JSON encode %v", backupManifestFileName) } - if _, err := mwc.Write([]byte(data)); err != nil { + if _, err := mwc.Write(data); err != nil { return BackupUnusable, vterrors.Wrapf(err, "cannot write %v", backupManifestFileName) }