diff options
author | Sujatha <sujatha.sivakumar@mariadb.com> | 2020-02-04 18:16:21 +0530 |
---|---|---|
committer | Sujatha <sujatha.sivakumar@mariadb.com> | 2020-02-04 18:16:21 +0530 |
commit | 42e825dd0a8d25c1d6fa93f5a07115ceed3ee0ff (patch) | |
tree | 9cf7b8aa71e0907c3912a221a475df306818121e /sql/lex.h | |
parent | 287c1db7867502348dcbc9ff7ccaae3d289cdbb1 (diff) | |
download | mariadb-git-42e825dd0a8d25c1d6fa93f5a07115ceed3ee0ff.tar.gz |
MDEV-20601: Make REPLICA a synonym for SLAVE in SQL statements
Fix:
===
Add "REPLICA" as an alias for "SLAVE". All commands which use "SLAVE" keyword
can be used with new alias "REPLICA".
List of commands:
On Master:
=========
SHOW REPLICA HOSTS <--> SHOW SLAVE HOSTS
Privilege "SLAVE" <--> "REPLICA"
On Slave:
=========
START SLAVE <--> START REPLICA
START ALL SLAVES <--> START ALL REPLICAS
START SLAVE UNTIL <--> START REPLICA UNTIL
STOP SLAVE <--> STOP REPLICA
STOP ALL SLAVES <--> STOP ALL REPLICAS
RESET SLAVE <--> RESET REPLICA
RESET SLAVE ALL <--> RESET REPLICA ALL
SLAVE_POS <--> REPLICA_POS
Diffstat (limited to 'sql/lex.h')
-rw-r--r-- | sql/lex.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/lex.h b/sql/lex.h index f3fc1513369..1cb7ad5d4c8 100644 --- a/sql/lex.h +++ b/sql/lex.h @@ -520,6 +520,9 @@ static SYMBOL symbols[] = { { "REPAIR", SYM(REPAIR)}, { "REPEATABLE", SYM(REPEATABLE_SYM)}, { "REPLACE", SYM(REPLACE)}, + { "REPLICA", SYM(SLAVE)}, + { "REPLICAS", SYM(SLAVES)}, + { "REPLICA_POS", SYM(SLAVE_POS_SYM)}, { "REPLICATION", SYM(REPLICATION)}, { "REPEAT", SYM(REPEAT_SYM)}, { "REQUIRE", SYM(REQUIRE_SYM)}, |