Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and tidy package #64

Merged
merged 10 commits into from
Oct 23, 2019
Merged

Refactor and tidy package #64

merged 10 commits into from
Oct 23, 2019

Conversation

zier-one
Copy link
Contributor

@zier-one zier-one commented Oct 22, 2019

What problem does this PR solve?

  1. remove cdc.encoder
  2. move files in cdc/util into pkg/util
  3. move schema.go to cdc/schema
  4. move txn.go to cdc/txn,and rename TxnMounter to txn.Mounter
  5. move sink.go, mysql.go to cdc/sink

Check List

Tests

  • Unit test

Copy link
Contributor

@suzaku suzaku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you break this PR into smaller ones? So that we can easily merge simple ones first.

cdc/cdc_test.go Outdated Show resolved Hide resolved
cdc/sink/mysql.go Outdated Show resolved Hide resolved
@zier-one zier-one added the status/ptal Could you please take a look? label Oct 22, 2019
cdc/txn/txn.go Outdated Show resolved Hide resolved
@@ -39,8 +44,8 @@ func NewCDCSuite() *CDCSuite {
if err != nil {
panic(err.Error())
}
// create a schema
schema, err := NewSchema(jobs, false)
// create a picker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can rename picker, but not schema 🙂️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

about this Schema, I will update it in next pr.
I will take @suzaku 's advice, think of Schema as a storage

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

cdc/changefeed.go Show resolved Hide resolved
Co-Authored-By: amyangfei <amyangfei@gmail.com>
Copy link
Contributor

@amyangfei amyangfei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amyangfei amyangfei added LGT1 and removed status/ptal Could you please take a look? labels Oct 22, 2019
Copy link
Contributor

@suzaku suzaku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@suzaku suzaku added LGT2 and removed LGT1 labels Oct 23, 2019
@zier-one zier-one merged commit 36aba57 into pingcap:master Oct 23, 2019
@zier-one zier-one deleted the refactor1 branch October 23, 2019 02:37
5kbpers pushed a commit to 5kbpers/ticdc that referenced this pull request Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants