MCPcopy Create free account
hub / github.com/apache/httpd / socache_precfg

Function socache_precfg

modules/cache/mod_cache_socache.c:1417–1431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1415}
1416
1417static int socache_precfg(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptmp)
1418{
1419 apr_status_t rv = ap_mutex_register(pconf, cache_socache_id, NULL,
1420 APR_LOCK_DEFAULT, 0);
1421 if (rv != APR_SUCCESS) {
1422 ap_log_perror(APLOG_MARK, APLOG_CRIT, rv, plog, APLOGNO(02390)
1423 "failed to register %s mutex", cache_socache_id);
1424 return 500; /* An HTTP status would be a misnomer! */
1425 }
1426
1427 /* Register to handle mod_status status page generation */
1428 socache_status_register(pconf);
1429
1430 return OK;
1431}
1432
1433static int socache_post_config(apr_pool_t *pconf, apr_pool_t *plog,
1434 apr_pool_t *ptmp, server_rec *base_server)

Callers

nothing calls this directly

Calls 2

ap_mutex_registerFunction · 0.85
socache_status_registerFunction · 0.85

Tested by

no test coverage detected