12 Mar
2014
12 Mar
'14
11:16 a.m.
On 12/03/14 11:41, Arran Cudbard-Bell wrote:
It seems like rlm_cache would probably run "too late"?
Why do you think it would be run too late?
You've got to populate the cache *after* you've done lease lookup, which unless you set threadpool_size == 1, could lead to the following: thread 1: check cache thread 1: sqlippool <suspended> thread 2: check cache thread 2: sqlippool thread 1: sqlippool <resumes> thread 1: populate cache thread 2: populate cache The duplicate detection and "get in queue for pending lease lookup" logic needs to happen before you do any lease processing.