MCPcopy Create free account
hub / github.com/Tencent/phxsql / acl_entry_get_key

Function acl_entry_get_key

phx_percona/percona/sql/sql_acl.cc:632–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630
631
632static uchar* acl_entry_get_key(acl_entry *entry, size_t *length,
633 my_bool not_used MY_ATTRIBUTE((unused)))
634{
635 *length=(uint) entry->length;
636 return (uchar*) entry->key;
637}
638
639#define IP_ADDR_STRLEN (3 + 1 + 3 + 1 + 3 + 1 + 3)
640#define ACL_KEY_LENGTH (IP_ADDR_STRLEN + 1 + NAME_LEN + \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected