Skip to content

Commit

Permalink
Increase max vrepl source def size from 64KiB to 16MiB (#10018)
Browse files Browse the repository at this point in the history
This will allow us to avoid practical limits on the number of shard
and table definitions in workflows.

Signed-off-by: Matt Lord <mattalord@gmail.com>
  • Loading branch information
mattlord authored Apr 14, 2022
1 parent bd70c6c commit 41226b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/binlog/binlogplayer/binlog_player.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ func CreateVReplicationTable() []string {
// AlterVReplicationTable adds new columns to vreplication table
var AlterVReplicationTable = []string{
"ALTER TABLE _vt.vreplication ADD COLUMN db_name VARBINARY(255) NOT NULL",
"ALTER TABLE _vt.vreplication MODIFY source BLOB NOT NULL",
"ALTER TABLE _vt.vreplication MODIFY source MEDIUMBLOB NOT NULL",
"ALTER TABLE _vt.vreplication ADD KEY workflow_idx (workflow(64))",
"ALTER TABLE _vt.vreplication ADD COLUMN rows_copied BIGINT(20) NOT NULL DEFAULT 0",
"ALTER TABLE _vt.vreplication ADD COLUMN tags VARBINARY(1024) NOT NULL DEFAULT ''",
Expand Down

0 comments on commit 41226b5

Please sign in to comment.