Commit 2a106e0f authored by marko's avatar marko

branches/zip: Deny non-superuser access to the INFORMATION_SCHEMA

tables INNODB_ZIP and INNODB_ZIP_RESET.
parent f0e3f1f3
......@@ -957,6 +957,12 @@ i_s_zip_fill_low(
DBUG_ENTER("i_s_zip_fill_low");
/* deny access to non-superusers */
if (check_global_access(thd, SUPER_ACL)) {
DBUG_RETURN(0);
}
/* Determine log2(PAGE_ZIP_MIN_SIZE / 2 / BUF_BUDDY_LOW). */
for (uint r = PAGE_ZIP_MIN_SIZE / 2 / BUF_BUDDY_LOW; r >>= 1; y++);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment