1
0
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:
Joe Orton
2008-12-09 14:52:59 +00:00
parent 778a79de65
commit b078f2374e
2 changed files with 9 additions and 0 deletions

View File

@@ -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 */
/** @} */

View File

@@ -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 = {