Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Sep 12, 2024
1 parent dc21803 commit 02598ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion go/vt/mysqlctl/s3backupstorage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion go/vt/mysqlctl/xtrabackupengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 02598ab

Please sign in to comment.