summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <daniel@mariadb.org>2021-02-08 16:42:18 +1100
committerDaniel Black <daniel@mariadb.org>2021-02-09 19:41:00 +1100
commit5e3d3220bbe344b0de60b26c24fd5cdc9fe1741a (patch)
tree8eb667a6d60aabf353345972302a7e7a3bc383af
parentffc5d064895cadbc42711efd7dbb6ae1b323f050 (diff)
downloadmariadb-git-5e3d3220bbe344b0de60b26c24fd5cdc9fe1741a.tar.gz
MDEV-24344: BINLOG REPLAY privilege is missing from SHOW PRIVILEGESbb-10.5-MDEV-24833
Was added in 10.5.2 (MDEV-21975)
-rw-r--r--mysql-test/main/grant.result1
-rw-r--r--sql/sql_show.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/main/grant.result b/mysql-test/main/grant.result
index 671b6dc4247..92073388b69 100644
--- a/mysql-test/main/grant.result
+++ b/mysql-test/main/grant.result
@@ -623,6 +623,7 @@ References Databases,Tables To have references on tables
Reload Server Admin To reload or refresh tables, logs and privileges
Binlog admin Server To purge binary logs
Binlog monitor Server To use SHOW BINLOG STATUS and SHOW BINARY LOG
+Binlog replay Server To use BINLOG (generated by mariadb-binlog)
Replication master admin Server To monitor connected slaves
Replication slave admin Server To start/stop slave and apply binlog events
Slave monitor Server To use SHOW SLAVE STATUS and SHOW RELAYLOG EVENTS
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index ae65cceb1fb..4c5e877cce8 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -483,6 +483,7 @@ static struct show_privileges_st sys_privileges[]=
{"Reload", "Server Admin", "To reload or refresh tables, logs and privileges"},
{"Binlog admin", "Server", "To purge binary logs"},
{"Binlog monitor", "Server", "To use SHOW BINLOG STATUS and SHOW BINARY LOG"},
+ {"Binlog replay", "Server", "To use BINLOG (generated by mariadb-binlog)"},
{"Replication master admin", "Server", "To monitor connected slaves"},
{"Replication slave admin", "Server", "To start/stop slave and apply binlog events"},
{"Slave monitor", "Server", "To use SHOW SLAVE STATUS and SHOW RELAYLOG EVENTS"},