MCPcopy Create free account
hub / github.com/F-Stack/f-stack / moduleInitModulesSystemLast

Function moduleInitModulesSystemLast

app/redis-6.2.6/src/module.c:8435–8439  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

8433 * For example, selectDb() in createClient() requires that server.db has
8434 * been initialized, see #7323. */
8435void moduleInitModulesSystemLast(void) {
8436 moduleFreeContextReusedClient = createClient(NULL);
8437 moduleFreeContextReusedClient->flags |= CLIENT_MODULE;
8438 moduleFreeContextReusedClient->user = NULL; /* root user. */
8439}
8440
8441void moduleInitModulesSystem(void) {
8442 moduleUnblockedClients = listCreate();

Callers 1

mainFunction · 0.85

Calls 1

createClientFunction · 0.70

Tested by

no test coverage detected