mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
better process empty acls
This commit is contained in:
parent
2e9979d672
commit
9303b5f0ce
@ -42,6 +42,9 @@ bool ACLMap::ACLsComparator::operator()(const Coordination::ACLs & left, const C
|
||||
|
||||
uint64_t ACLMap::convertACLs(const Coordination::ACLs & acls)
|
||||
{
|
||||
if (acls.empty())
|
||||
return 0;
|
||||
|
||||
if (acl_to_num.count(acls))
|
||||
return acl_to_num[acls];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user