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

Function CreateUserEntryHashSet

pg_documentdb/src/commands/users.c:1901–1912  ·  view source on GitHub ↗

* Creates a hash table that maps strings to HTAB pointers. */

Source from the content-addressed store, hash-verified

1899 * Creates a hash table that maps strings to HTAB pointers.
1900 */
1901static HTAB *
1902CreateUserEntryHashSet()
1903{
1904 HASHCTL hashInfo = CreateExtensionHashCTL(
1905 sizeof(UserRoleHashEntry),
1906 sizeof(UserRoleHashEntry),
1907 UserHashEntryCompareFunc,
1908 UserHashEntryHashFunc
1909 );
1910 return hash_create("User Entry Hash Table", 32, &hashInfo,
1911 DefaultExtensionHashFlags);
1912}
1913
1914
1915/*

Callers 1

BuildUserRoleEntryTableFunction · 0.85

Calls 1

CreateExtensionHashCTLFunction · 0.85

Tested by

no test coverage detected