httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r724723 - in /httpd/httpd/trunk: include/ap_socache.h modules/cache/mod_socache_shmcb.c
Date Tue, 09 Dec 2008 14:52:59 GMT
Author: jorton
Date: Tue Dec  9 06:52:59 2008
New Revision: 724723

URL: http://svn.apache.org/viewvc?rev=724723&view=rev
Log:
* 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.

Modified:
    httpd/httpd/trunk/include/ap_socache.h
    httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c

Modified: httpd/httpd/trunk/include/ap_socache.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/ap_socache.h?rev=724723&r1=724722&r2=724723&view=diff
==============================================================================
--- httpd/httpd/trunk/include/ap_socache.h (original)
+++ httpd/httpd/trunk/include/ap_socache.h Tue Dec  9 06:52:59 2008
@@ -160,5 +160,8 @@
 /** 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 */
 /** @} */

Modified: httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c?rev=724723&r1=724722&r2=724723&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_socache_shmcb.c Tue Dec  9 06:52:59 2008
@@ -857,6 +857,12 @@
     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 = {



Mime
View raw message