]> granicus.if.org Git - apache/commitdiff
mod_socache_shmcb: Correct counting of expirations for status display.
authorRainer Jung <rjung@apache.org>
Sat, 17 May 2014 06:01:35 +0000 (06:01 +0000)
committerRainer Jung <rjung@apache.org>
Sat, 17 May 2014 06:01:35 +0000 (06:01 +0000)
Expirations happening during retrieval were not counted.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1595426 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/cache/mod_socache_shmcb.c

diff --git a/CHANGES b/CHANGES
index e87e784ab60f7c059d39dca28b881358dac995d5..841309b74629bf7f696c370f66dbcb63cc9f9932 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_socache_shmcb: Correct counting of expirations for status display.
+     Expirations happening during retrieval were not counted. [Rainer Jung]
+
   *) mod_proxy_balancer: Correctly encode user provided data in management
      interface. PR 56532 [Maksymilian, <max cert.cx>]
 
index a2e56a101510fa84f3b05fd95288eaf570b1d9ab..706c2f74f69daebbb34b64f9d5313efce742b4c6 100644 (file)
@@ -868,6 +868,7 @@ static int shmcb_subcache_retrieve(server_rec *s, SHMCBHeader *header,
             else {
                 /* Already stale, quietly remove and treat as not-found */
                 idx->removed = 1;
+                header->stat_expiries++;
                 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(00850)
                              "shmcb_subcache_retrieve discarding expired entry");
                 return -1;
@@ -991,6 +992,7 @@ static apr_status_t shmcb_subcache_iterate(ap_socache_instance_t *instance,
             else {
                 /* Already stale, quietly remove and treat as not-found */
                 idx->removed = 1;
+                header->stat_expiries++;
                 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(00856)
                              "shmcb_subcache_iterate discarding expired entry");
             }