PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_slotmem_shm: debugging help
- trunk patch: http://svn.apache.org/r1562472
- http://svn.apache.org/r1561262
- http://svn.apache.org/r1561923
- http://svn.apache.org/r1574151
- 2.4.x patch: trunk works mod/ next_number
- +1: jim, ylavic, trawick
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
if (strcmp(next->name, fname) == 0) {
/* we already have it */
*new = next;
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(02603)
+ "create found %s in global list", fname);
return APR_SUCCESS;
}
if (!next->next) {
next = next->next;
}
}
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(02602)
+ "create didn't find %s in global list", fname);
}
else {
fbased = 0;
rv = APR_EINVAL;
}
if (rv == APR_SUCCESS) {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(02598)
+ "apr_shm_attach() succeeded");
+
/* check size */
if (apr_shm_size_get(shm) != size) {
apr_shm_detach(shm);
+ ap_log_error(APLOG_MARK, APLOG_ERR, 0, ap_server_conf, APLOGNO(02599)
+ "existing shared memory for %s could not be used (failed size check)",
+ fname);
return APR_EINVAL;
}
ptr = (char *)apr_shm_baseaddr_get(shm);
memcpy(&desc, ptr, sizeof(desc));
if (desc.size != item_size || desc.num != item_num) {
apr_shm_detach(shm);
+ ap_log_error(APLOG_MARK, APLOG_ERR, 0, ap_server_conf, APLOGNO(02600)
+ "existing shared memory for %s could not be used (failed contents check)",
+ fname);
return APR_EINVAL;
}
ptr += AP_SLOTMEM_OFFSET;
else {
rv = apr_shm_create(&shm, size, NULL, gpool);
}
+ ap_log_error(APLOG_MARK, rv == APR_SUCCESS ? APLOG_DEBUG : APLOG_ERR,
+ rv, ap_server_conf, APLOGNO(02611)
+ "create: apr_shm_create(%s) %s",
+ fname ? fname : "",
+ rv == APR_SUCCESS ? "succeeded" : "failed");
if (rv != APR_SUCCESS) {
return rv;
}