-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-34053 mariadbbackup privilege REPLICA MONITOR issue
MariaDB-backup needs to check for SLAVE MONITOR as that is what is returned by SHOW GRANTS. Update test to ensure that warnings about missing privileges do not occur when the backup is successful. Thanks Eugene for reporting the issue.
- Loading branch information
1 parent
20f60fe
commit c9a33c7
Showing
3 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
CREATE user backup@localhost; | ||
NOT FOUND /missing required privilege/ in backup.log | ||
FOUND 1 /missing required privilege RELOAD/ in backup.log | ||
FOUND 1 /missing required privilege PROCESS/ in backup.log | ||
FOUND 1 /GRANT USAGE ON/ in backup.log | ||
GRANT RELOAD, PROCESS on *.* to backup@localhost; | ||
FOUND 1 /missing required privilege REPLICA MONITOR/ in backup.log | ||
NOT FOUND /missing required privilege/ in backup.log | ||
FOUND 1 /missing required privilege SLAVE MONITOR/ in backup.log | ||
GRANT REPLICA MONITOR ON *.* TO backup@localhost; | ||
NOT FOUND /missing required privilege/ in backup.log | ||
REVOKE REPLICA MONITOR ON *.* FROM backup@localhost; | ||
FOUND 1 /missing required privilege CONNECTION ADMIN/ in backup.log | ||
GRANT CONNECTION ADMIN ON *.* TO backup@localhost; | ||
NOT FOUND /missing required privilege/ in backup.log | ||
FOUND 1 /missing required privilege REPLICATION SLAVE ADMIN/ in backup.log | ||
FOUND 1 /missing required privilege REPLICA MONITOR/ in backup.log | ||
FOUND 1 /missing required privilege SLAVE MONITOR/ in backup.log | ||
GRANT REPLICATION SLAVE ADMIN ON *.* TO backup@localhost; | ||
GRANT REPLICA MONITOR ON *.* TO backup@localhost; | ||
NOT FOUND /missing required privilege/ in backup.log | ||
DROP USER backup@localhost; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters