[MDEV-15649] optimize search for user/db privileges Created: 2018-03-23  Updated: 2019-08-22  Resolved: 2018-12-06

Status: Closed
Project: MariaDB Server
Component/s: Authentication and Privilege System
Fix Version/s: 10.4.1

Type: Task Priority: Major
Reporter: Sergei Golubchik Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
causes MDEV-17946 Assertion `strcmp(arr[i].get_username... Closed
Relates
relates to MDEV-15222 Connections hanging in 'checking perm... Closed

 Description   

Users and dbs are stored in memory in an array and searched with a linear search.
This becomes too slow with a large number of accounts, it'd be good to optimize it.


Generated at Thu Feb 08 08:22:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.