Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: ailinkid <314806019@qq.com>
  • Loading branch information
AilinKid committed Aug 30, 2021
1 parent 2192fef commit 5a3764e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddl/ddl_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -6171,7 +6171,7 @@ func buildPolicyInfo(stmt *ast.CreatePlacementPolicyStmt) (*placementpolicy.Poli
policyInfo.FollowerConstraints = opt.StrValue
case ast.PlacementOptionVoterConstraints:
policyInfo.VoterConstraints = opt.StrValue
case ast.PlacementOptionLearnerConstraints:
case ast.PlacementOptionLeaderConstraints:
policyInfo.LeaderConstraints = opt.StrValue
default:
return nil, errors.Trace(errors.New("unknown placement policy option"))
Expand Down

0 comments on commit 5a3764e

Please sign in to comment.