better process empty acls

This commit is contained in:
zhangxiao871 2021-12-28 15:54:00 +08:00
parent 2e9979d672
commit 9303b5f0ce

View File

@ -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];