Skip to content

Commit

Permalink
*: remove deprecated LOAD DATA actions (pingcap#49470)
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 authored Dec 15, 2023
1 parent 074af10 commit 323b0f7
Show file tree
Hide file tree
Showing 22 changed files with 7,287 additions and 8,587 deletions.
1 change: 0 additions & 1 deletion pkg/disttask/importinto/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ go_library(
"//pkg/disttask/operator",
"//pkg/domain/infosync",
"//pkg/errno",
"//pkg/executor/asyncloaddata",
"//pkg/executor/importer",
"//pkg/keyspace",
"//pkg/kv",
Expand Down
3 changes: 1 addition & 2 deletions pkg/disttask/importinto/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"github.com/pingcap/tidb/br/pkg/lightning/verification"
"github.com/pingcap/tidb/pkg/disttask/framework/proto"
"github.com/pingcap/tidb/pkg/domain/infosync"
"github.com/pingcap/tidb/pkg/executor/asyncloaddata"
"github.com/pingcap/tidb/pkg/executor/importer"
"github.com/pingcap/tidb/pkg/meta/autoid"
)
Expand Down Expand Up @@ -132,7 +131,7 @@ type SharedVars struct {
TableImporter *importer.TableImporter
DataEngine *backend.OpenedEngine
IndexEngine *backend.OpenedEngine
Progress *asyncloaddata.Progress
Progress *importer.Progress

mu sync.Mutex
Checksum *verification.KVChecksum
Expand Down
7 changes: 3 additions & 4 deletions pkg/disttask/importinto/task_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"github.com/pingcap/tidb/pkg/disttask/framework/taskexecutor"
"github.com/pingcap/tidb/pkg/disttask/framework/taskexecutor/execute"
"github.com/pingcap/tidb/pkg/disttask/operator"
"github.com/pingcap/tidb/pkg/executor/asyncloaddata"
"github.com/pingcap/tidb/pkg/executor/importer"
"github.com/pingcap/tidb/pkg/meta/autoid"
"github.com/pingcap/tidb/pkg/table/tables"
Expand Down Expand Up @@ -81,8 +80,8 @@ func getTableImporter(ctx context.Context, taskID int64, taskMeta *TaskMeta) (*i

return importer.NewTableImporter(&importer.JobImportParam{
GroupCtx: ctx,
Progress: asyncloaddata.NewProgress(false),
Job: &asyncloaddata.Job{},
Progress: importer.NewProgress(),
Job: &importer.Job{},
}, controller, taskID)
}

Expand Down Expand Up @@ -146,7 +145,7 @@ func (s *importStepExecutor) RunSubtask(ctx context.Context, subtask *proto.Subt
TableImporter: s.tableImporter,
DataEngine: dataEngine,
IndexEngine: indexEngine,
Progress: asyncloaddata.NewProgress(false),
Progress: importer.NewProgress(),
Checksum: &verification.KVChecksum{},
SortedDataMeta: &external.SortedKVMeta{},
SortedIndexMetas: make(map[int64]*external.SortedKVMeta),
Expand Down
1 change: 0 additions & 1 deletion pkg/executor/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ go_library(
"//pkg/errno",
"//pkg/executor/aggfuncs",
"//pkg/executor/aggregate",
"//pkg/executor/asyncloaddata",
"//pkg/executor/importer",
"//pkg/executor/internal/applycache",
"//pkg/executor/internal/builder",
Expand Down
45 changes: 0 additions & 45 deletions pkg/executor/asyncloaddata/BUILD.bazel

This file was deleted.

35 changes: 0 additions & 35 deletions pkg/executor/asyncloaddata/main_test.go

This file was deleted.

103 changes: 0 additions & 103 deletions pkg/executor/asyncloaddata/progress.go

This file was deleted.

53 changes: 0 additions & 53 deletions pkg/executor/asyncloaddata/progress_test.go

This file was deleted.

Loading

0 comments on commit 323b0f7

Please sign in to comment.