-
Notifications
You must be signed in to change notification settings - Fork 131
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
drainer: remove pb compress config && change 'pb' to 'file' #559
Conversation
/run-all-tests |
/run-all-tests |
drainer/config.go
Outdated
@@ -197,7 +197,7 @@ func (cfg *Config) Parse(args []string) error { | |||
} | |||
|
|||
func (c *SyncerConfig) adjustWorkCount() { | |||
if c.DestDBType == "pb" || c.DestDBType == "kafka" { | |||
if c.DestDBType == "pb" || c.DestDBType == "file" || c.DestDBType == "kafka" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about replacing pb
with file
in (cfg *Config).adjustConfig
and only handle the file
type in the rest of the source code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in 0768e96, PTAL again
@@ -20,7 +20,7 @@ Usage of drainer: | |||
-data-dir string | |||
drainer data directory path (default data.drainer) (default "data.drainer") | |||
-dest-db-type string | |||
target db type: mysql or pb; see syncer section in conf/drainer.toml (default "mysql") | |||
target db type: mysql or tidb or file or kafka; see syncer section in conf/drainer.toml (default "mysql") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think file
's OK, better than pb
for an end user.
LGTM |
/run-all-tests |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
…db-binlog into xiang/remove_compress
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
https://internal.pingcap.net/jira/browse/TOOL-1112
Check List
Tests
Related changes