Skip to content

Commit

Permalink
rename errorsbackup to errors
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Dec 9, 2024
1 parent 19d6e28 commit 25791d8
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
5 changes: 3 additions & 2 deletions go/vt/mysqlctl/azblobbackupstorage/azblob.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ import (
"github.com/Azure/azure-storage-blob-go/azblob"
"github.com/spf13/pflag"

"vitess.io/vitess/go/vt/mysqlctl/errors"

"vitess.io/vitess/go/viperutil"
"vitess.io/vitess/go/vt/log"
"vitess.io/vitess/go/vt/mysqlctl/backupstorage"
"vitess.io/vitess/go/vt/mysqlctl/errorsbackup"
"vitess.io/vitess/go/vt/servenv"
)

Expand Down Expand Up @@ -205,7 +206,7 @@ type AZBlobBackupHandle struct {
waitGroup sync.WaitGroup
ctx context.Context
cancel context.CancelFunc
errorsbackup.PerFileErrorRecorder
errors.PerFileErrorRecorder
}

// Directory implements BackupHandle.
Expand Down
4 changes: 2 additions & 2 deletions go/vt/mysqlctl/backupstorage/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"github.com/spf13/pflag"

"vitess.io/vitess/go/vt/mysqlctl/errorsbackup"
"vitess.io/vitess/go/vt/mysqlctl/errors"

"vitess.io/vitess/go/vt/servenv"
)
Expand Down Expand Up @@ -92,7 +92,7 @@ type BackupHandle interface {

// BackupErrorRecorder is embedded here to coordinate reporting and
// handling of errors among all the components involved in taking/restoring a backup.
errorsbackup.BackupErrorRecorder
errors.BackupErrorRecorder
}

// BackupStorage is the interface to the storage system
Expand Down
4 changes: 2 additions & 2 deletions go/vt/mysqlctl/cephbackupstorage/ceph.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import (
minio "github.com/minio/minio-go"
"github.com/spf13/pflag"

"vitess.io/vitess/go/vt/mysqlctl/errorsbackup"
"vitess.io/vitess/go/vt/mysqlctl/backupstorage"

"vitess.io/vitess/go/vt/log"
"vitess.io/vitess/go/vt/mysqlctl/backupstorage"
errorsbackup "vitess.io/vitess/go/vt/mysqlctl/errors"
"vitess.io/vitess/go/vt/servenv"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package errorsbackup
package errors

import (
"errors"
Expand Down
4 changes: 2 additions & 2 deletions go/vt/mysqlctl/fakebackupstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import (
"io"

"vitess.io/vitess/go/vt/mysqlctl/backupstorage"
"vitess.io/vitess/go/vt/mysqlctl/errorsbackup"
"vitess.io/vitess/go/vt/mysqlctl/errors"
)

type FakeBackupHandle struct {
Dir string
NameV string
ReadOnly bool
errorsbackup.PerFileErrorRecorder
errors.PerFileErrorRecorder

AbortBackupCalls []context.Context
AbortBackupReturn error
Expand Down
4 changes: 2 additions & 2 deletions go/vt/mysqlctl/filebackupstorage/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

"github.com/spf13/pflag"

"vitess.io/vitess/go/vt/mysqlctl/errorsbackup"
"vitess.io/vitess/go/vt/mysqlctl/errors"

"vitess.io/vitess/go/ioutil"
stats "vitess.io/vitess/go/vt/mysqlctl/backupstats"
Expand Down Expand Up @@ -60,7 +60,7 @@ type FileBackupHandle struct {
dir string
name string
readOnly bool
errorsbackup.PerFileErrorRecorder
errors.PerFileErrorRecorder
}

func NewBackupHandle(
Expand Down
4 changes: 2 additions & 2 deletions go/vt/mysqlctl/gcsbackupstorage/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"google.golang.org/api/iterator"
"google.golang.org/api/option"

"vitess.io/vitess/go/vt/mysqlctl/errorsbackup"
"vitess.io/vitess/go/vt/mysqlctl/errors"

"vitess.io/vitess/go/trace"
"vitess.io/vitess/go/vt/mysqlctl/backupstorage"
Expand Down Expand Up @@ -66,7 +66,7 @@ type GCSBackupHandle struct {
dir string
name string
readOnly bool
errorsbackup.PerFileErrorRecorder
errors.PerFileErrorRecorder
}

// Directory implements BackupHandle.
Expand Down
2 changes: 1 addition & 1 deletion go/vt/mysqlctl/s3backupstorage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import (
"github.com/aws/smithy-go/middleware"
"github.com/spf13/pflag"

"vitess.io/vitess/go/vt/mysqlctl/errorsbackup"
errorsbackup "vitess.io/vitess/go/vt/mysqlctl/errors"

"vitess.io/vitess/go/vt/log"
stats "vitess.io/vitess/go/vt/mysqlctl/backupstats"
Expand Down

0 comments on commit 25791d8

Please sign in to comment.