From de472770d3aa45da40d622992dd724cfdcc1fb56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicen=C8=9Biu=20Ciorbaru?= Date: Thu, 17 Oct 2013 15:09:14 -0700 Subject: [PATCH] Removed no longer needed hash_walk_action. The function was used to delete no longer valid entries in the roles_mappings HASH. This job will be delegated to handle_grant_* functions --- sql/sql_acl.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 8cec6d6c53d..26f912eccd3 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -2066,16 +2066,6 @@ my_bool add_role_user_mapping(ROLE_GRANT_PAIR *mapping) } -static my_bool roles_mappings_walk_action(ROLE_GRANT_PAIR *mapping, - void * not_used __attribute__((unused))) -{ - if (add_role_user_mapping(mapping)) { - //the mapping is invalid, the mapping can be safely deleted - my_hash_delete(&acl_roles_mappings, (uchar*) mapping); - } - return 0; -} - /* Rebuild the role grants every time the acl_users is modified