Assert that objects' lru pointer is correct

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