forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg -- handle mydumper data source (pingcap#3)
* pakage for handle mydumper data source * modify mydump reader implementation of reading block content * 1. error check 2. fix problem of block reading 3. modify test cases * return error on failed creating loader * mydumper reader's method *Read* accepts 'minBlockSize' rather than 'maxBlockSize' as batch size limitation. * regulate spelling mistake * regulate spelling mistake * update expression of judging valid myduper table file by checking file-name
- Loading branch information
Showing
13 changed files
with
21,158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package mydump | ||
|
||
const ( | ||
defReadBlockSize int64 = 1024 * 8 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Started dump at: 2017-11-30 20:16:38 | ||
Finished dump at: 2017-11-30 20:16:38 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE DATABASE `mocker_test` /* !40100 DEFAULT CHARACTER SET utf8 */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/*!40101 SET NAMES binary*/; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=0*/; | ||
|
||
CREATE TABLE `tbl_autoid` ( | ||
`ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`Name` varchar(64) DEFAULT NULL, | ||
PRIMARY KEY (`ID`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
Oops, something went wrong.