#include "ap_slotmem.h"
#include "httpd.h"
+#include "http_main.h"
#ifdef AP_NEED_SET_MUTEX_PERMS
#include "unixd.h"
#endif
}
}
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;
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;