Skip to content

Commit

Permalink
Add ability to select from vreplication_log in VReplicationExec
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <[email protected]>
  • Loading branch information
rohit-nayak-ps committed Apr 27, 2021
1 parent 427cac8 commit f57350c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func buildDeletePlan(del *sqlparser.Delete) (*controllerPlan, error) {

func buildSelectPlan(sel *sqlparser.Select) (*controllerPlan, error) {
switch sqlparser.String(sel.From) {
case vreplicationTableName, reshardingJournalTableName, copyStateTableName:
case vreplicationTableName, reshardingJournalTableName, copyStateTableName, vreplicationLogTableName:
return &controllerPlan{
opcode: selectQuery,
}, nil
Expand Down
3 changes: 2 additions & 1 deletion go/vt/vttablet/tabletmanager/vreplication/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import (
)

const (
createVReplicationLog = `CREATE TABLE IF NOT EXISTS _vt.vreplication_log (
vreplicationLogTableName = "_vt.vreplication_log"
createVReplicationLog = `CREATE TABLE IF NOT EXISTS _vt.vreplication_log (
id BIGINT(20) AUTO_INCREMENT,
vrepl_id INT NOT NULL,
type VARBINARY(256) NOT NULL,
Expand Down

0 comments on commit f57350c

Please sign in to comment.