MCPcopy Create free account
hub / github.com/documentdb/documentdb / CreateParentRolesHashSet

Function CreateParentRolesHashSet

pg_documentdb/src/commands/roles.c:1784–1795  ·  view source on GitHub ↗

* CreateParentRolesHashSet creates a hash set for storing parent role names. */

Source from the content-addressed store, hash-verified

1782 * CreateParentRolesHashSet creates a hash set for storing parent role names.
1783 */
1784static HTAB *
1785CreateParentRolesHashSet(void)
1786{
1787 HASHCTL hashCtl;
1788 memset(&hashCtl, 0, sizeof(hashCtl));
1789 hashCtl.keysize = NAMEDATALEN;
1790 hashCtl.entrysize = NAMEDATALEN; /* Key-only hash set */
1791 hashCtl.hcxt = CurrentMemoryContext;
1792
1793 return hash_create("ParentRolesSet", 16, &hashCtl,
1794 HASH_ELEM | HASH_STRINGS | HASH_CONTEXT);
1795}
1796
1797
1798/*

Callers 1

create_roleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected