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

STORAGE-4262: Automatically Recover From Failed PRS Operation #5

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
plan_table_dual.patch
Signed-off-by: Adam Saponara <as@php.net>
  • Loading branch information
adsr committed Jun 16, 2020
commit 175f2b125f2d40b06a2ef282560e5777e70da8c5
4 changes: 2 additions & 2 deletions go/vt/vttablet/tabletserver/planbuilder/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ func (plan *Plan) TableName() sqlparser.TableIdent {
}

func (plan *Plan) setTable(tableName sqlparser.TableIdent, tables map[string]*schema.Table) (*schema.Table, error) {
if plan.Table = tables[tableName.String()]; plan.Table == nil {
return nil, vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "table %s not found in schema", tableName)
if plan.Table = tables["dual"]; plan.Table == nil {
return nil, vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "table %s not found in schema", "dual")
}
return plan.Table, nil
}
Expand Down