Skip to content

Commit f8ea0db

Browse files
author
Qihoo360
committed
adjust order of token_ids
1 parent aefba26 commit f8ea0db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/proxy/proxy-plugin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,9 +1049,9 @@ int rw_split(GPtrArray* tokens, network_mysqld_con* con) {
10491049
token_id = first_token->token_id;
10501050
}
10511051
}
1052-
}
1052+
}
10531053

1054-
if (token_id == TK_SQL_SELECT || token_id == TK_SQL_SET || token_id == TK_SQL_USE || token_id == TK_SQL_EXPLAIN || token_id == TK_SQL_SHOW || token_id == TK_SQL_DESC) {
1054+
if (token_id == TK_SQL_SELECT || token_id == TK_SQL_SET || token_id == TK_SQL_USE || token_id == TK_SQL_SHOW || token_id == TK_SQL_DESC || token_id == TK_SQL_EXPLAIN) {
10551055
return wrr_ro(con);
10561056
} else {
10571057
return idle_rw(con);

0 commit comments

Comments
 (0)