More debug messaging... useful for tracking down

if we used attach or create

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1561262 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Jagielski
2014-01-25 06:06:54 +00:00
parent 7f11f97354
commit b6bc90c796
2 changed files with 8 additions and 1 deletions

View File

@ -1 +1 @@
2598
2601

View File

@ -381,6 +381,9 @@ static apr_status_t slotmem_create(ap_slotmem_instance_t **new,
rv = APR_EINVAL;
}
if (rv == APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(02598)
"looks like apr_shm_attach() worked...");
/* check size */
if (apr_shm_size_get(shm) != size) {
apr_shm_detach(shm);
@ -393,8 +396,12 @@ static apr_status_t slotmem_create(ap_slotmem_instance_t **new,
return APR_EINVAL;
}
ptr += AP_SLOTMEM_OFFSET;
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(02599)
"apr_shm_attach() for sure worked...");
}
else {
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(02600)
"doing a real apr_shm_create()...");
apr_size_t dsize = size - AP_SLOTMEM_OFFSET;
if (fbased) {
apr_shm_remove(fname, gpool);