mirror of
https://github.com/apache/httpd.git
synced 2025-11-09 15:21:02 +03:00
* include/ap_socache.h: Define AP_SOCACHE_DEFAULT_PROVIDER as a
default provider name, to allow consumers to use a default provider if not configured otherwise. * modules/cache/mod_socache_shmcb.c (register_hooks): Register shmcb as the default provider. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@724723 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -160,5 +160,8 @@ typedef struct ap_socache_provider_t {
|
||||
/** The provider version used to register socache providers. */
|
||||
#define AP_SOCACHE_PROVIDER_VERSION "0"
|
||||
|
||||
/** Default provider name. */
|
||||
#define AP_SOCACHE_DEFAULT_PROVIDER "default"
|
||||
|
||||
#endif /* AP_SOCACHE_H */
|
||||
/** @} */
|
||||
|
||||
6
modules/cache/mod_socache_shmcb.c
vendored
6
modules/cache/mod_socache_shmcb.c
vendored
@@ -857,6 +857,12 @@ static void register_hooks(apr_pool_t *p)
|
||||
ap_register_provider(p, AP_SOCACHE_PROVIDER_GROUP, "shmcb",
|
||||
AP_SOCACHE_PROVIDER_VERSION,
|
||||
&socache_shmcb);
|
||||
|
||||
/* Also register shmcb under the default provider name. */
|
||||
ap_register_provider(p, AP_SOCACHE_PROVIDER_GROUP,
|
||||
AP_SOCACHE_DEFAULT_PROVIDER,
|
||||
AP_SOCACHE_PROVIDER_VERSION,
|
||||
&socache_shmcb);
|
||||
}
|
||||
|
||||
module AP_MODULE_DECLARE_DATA socache_shmcb_module = {
|
||||
|
||||
Reference in New Issue
Block a user