Assert that objects' lru pointer is correct

parent cac336fa
...@@ -3150,6 +3150,7 @@ fellow_cache_lru_work(struct worker *wrk, struct fellow_cache_lru *lru) ...@@ -3150,6 +3150,7 @@ fellow_cache_lru_work(struct worker *wrk, struct fellow_cache_lru *lru)
continue; continue;
fco = fcs->fco; fco = fcs->fco;
AN(fco); AN(fco);
assert(fco->lru == lru);
r = pthread_mutex_trylock(&fco->mtx); r = pthread_mutex_trylock(&fco->mtx);
if (r != 0) { if (r != 0) {
assert(r == EBUSY); assert(r == EBUSY);
......
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