unsigned int disablereuse_set:1;
} proxy_worker_shared;
+#define ALIGNED_PROXY_WORKER_SHARED_SIZE (APR_ALIGN_DEFAULT(sizeof(proxy_worker_shared)))
+
/* Worker configuration */
struct proxy_worker {
int index; /* shm array index */
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, "Doing create: %s (%s), %d, %d",
balancer->name, balancer->sname,
- (int)sizeof(proxy_worker_shared),
+ (int)ALIGNED_PROXY_WORKER_SHARED_SIZE,
(int)balancer->max_workers);
- rv = storage->create(&new, balancer->sname, sizeof(proxy_worker_shared),
- balancer->max_workers, AP_SLOTMEM_TYPE_PREGRAB, pconf);
+ rv = storage->create(&new, balancer->sname,
+ ALIGNED_PROXY_WORKER_SHARED_SIZE,
+ balancer->max_workers, AP_SLOTMEM_TYPE_PREGRAB, pconf);
if (rv != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_EMERG, rv, s, "slotmem_create failed");
return !OK;