good morning!!!!

Skip to content
Snippets Groups Projects
Commit f29f6f61 authored by Garet Halliday's avatar Garet Halliday
Browse files

add create keyword as write hint

parent 967ff5b5
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ func (r *QueryRouter) InferRole(query string) (config.ServerRole, error) { ...@@ -90,7 +90,7 @@ func (r *QueryRouter) InferRole(query string) (config.ServerRole, error) {
var role = config.SERVERROLE_REPLICA var role = config.SERVERROLE_REPLICA
for _, token := range tokens { for _, token := range tokens {
switch token.Token { switch token.Token {
case lex.KeywordUpdate, lex.KeywordDelete, lex.KeywordInsert, lex.KeywordDrop: case lex.KeywordUpdate, lex.KeywordDelete, lex.KeywordInsert, lex.KeywordDrop, lex.KeywordCreate:
role = config.SERVERROLE_PRIMARY role = config.SERVERROLE_PRIMARY
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment