Commit aa8875a4 authored by Nils Goroll's avatar Nils Goroll

add a temporary bandaid for vmod_re

@bsdphk to be discussed / replaced
parent 128cc1a5
......@@ -731,6 +731,7 @@ extern const char H__Reason[];
#define VXID(u) ((u) & VSL_IDENTMASK)
uint32_t VXID_Get(struct worker *, uint32_t marker);
extern volatile struct params * cache_param;
extern volatile struct vre_limits *vparam_vre_limits;
extern pthread_key_t witness_key;
/* cache_lck.c */
......
......@@ -49,7 +49,9 @@
#include "hash/hash_slinger.h"
volatile struct params *cache_param;
volatile struct params *cache_param;
// XXX generic solution?
volatile struct vre_limits *vparam_vre_limits;
/*--------------------------------------------------------------------
* Per thread storage for the session currently being processed by
......@@ -308,6 +310,8 @@ child_main(int sigmagic, size_t altstksz)
#endif
cache_param = heritage.param;
// XXX TODO - generic solution?
vparam_vre_limits = &cache_param->vre_limits;
AZ(pthread_key_create(&req_key, NULL));
AZ(pthread_key_create(&bo_key, NULL));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment