From: Stefan Fritsch Date: Mon, 2 Jan 2012 09:00:55 +0000 (+0000) Subject: Add a bit of debug logging X-Git-Tag: 2.5.0-alpha~7611 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=277ee6b6fc9d9837291fd65531f5442e855079f5;p=thirdparty%2Fapache%2Fhttpd.git Add a bit of debug logging git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1226375 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/log-message-tags/next-number b/docs/log-message-tags/next-number index c7ffbf80842..0f6991adc91 100644 --- a/docs/log-message-tags/next-number +++ b/docs/log-message-tags/next-number @@ -1 +1 @@ -2293 +2295 diff --git a/modules/slotmem/mod_slotmem_shm.c b/modules/slotmem/mod_slotmem_shm.c index 496764c1198..cd6ead27e00 100644 --- a/modules/slotmem/mod_slotmem_shm.c +++ b/modules/slotmem/mod_slotmem_shm.c @@ -24,6 +24,7 @@ #include "ap_slotmem.h" #include "httpd.h" +#include "http_main.h" #ifdef AP_NEED_SET_MUTEX_PERMS #include "unixd.h" #endif @@ -571,6 +572,10 @@ static apr_status_t slotmem_grab(ap_slotmem_instance_t *slot, unsigned int *id) } } if (i >= slot->desc.num) { + ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(02293) + "slotmem(%s) grab failed. Num %u/num_free %u", + slot->name, slotmem_num_slots(slot), + slotmem_num_free_slots(slot)); return APR_EINVAL; } *inuse = 1; @@ -591,6 +596,10 @@ static apr_status_t slotmem_release(ap_slotmem_instance_t *slot, inuse = slot->inuse; if (id >= slot->desc.num || !inuse[id] ) { + ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(02294) + "slotmem(%s) release failed. Num %u/inuse[%u] %d", + slot->name, slotmem_num_slots(slot), + id, (int)inuse[id]); return APR_NOTFOUND; } inuse[id] = 0;