mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-15649 Speedup search in acl_users and acl_dbs array,
sorting them by usernames first, and then by get_sort() value. Search functions now use binary search to find the the first entry with given name. Then, linear search is done, until the first match.
This commit is contained in:
@ -118,7 +118,7 @@ Con4 is alive
|
||||
Con4 is alive
|
||||
select current_user();
|
||||
current_user()
|
||||
root@2001:db8::6:6
|
||||
root@santa.claus.ipv6.example.com
|
||||
disconnect con4;
|
||||
connection default;
|
||||
"Dumping performance_schema.host_cache"
|
||||
@ -155,7 +155,7 @@ Con5 is alive
|
||||
Con5 is alive
|
||||
select current_user();
|
||||
current_user()
|
||||
root@2001:db8::6:6
|
||||
root@santa.claus.ipv6.example.com
|
||||
disconnect con5;
|
||||
connection default;
|
||||
"Dumping performance_schema.host_cache"
|
||||
|
Reference in New Issue
Block a user