MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / moduleInitModulesSystemLast

Function moduleInitModulesSystemLast

src/module.cpp:8634–8638  ·  view source on GitHub ↗

Some steps in module initialization need to be done last after server * initialization. * For example, selectDb() in createClient() requires that g_pserver->db has * been initialized, see #7323. */

Source from the content-addressed store, hash-verified

8632 * For example, selectDb() in createClient() requires that g_pserver->db has
8633 * been initialized, see #7323. */
8634void moduleInitModulesSystemLast(void) {
8635 moduleFreeContextReusedClient = createClient(NULL, IDX_EVENT_LOOP_MAIN);
8636 moduleFreeContextReusedClient->flags |= CLIENT_MODULE;
8637 moduleFreeContextReusedClient->user = NULL; /* root user. */
8638}
8639
8640void moduleInitModulesSystem(void) {
8641 moduleUnblockedClients = listCreate();

Callers 1

mainFunction · 0.85

Calls 1

createClientFunction · 0.70

Tested by

no test coverage detected