fellow_cache: Terminate seglist upon error

parent 50629b6c
......@@ -2202,6 +2202,9 @@ fellow_cache_seglists_load(struct worker *wrk, void *priv)
if (fcsl_mem.ptr != NULL)
buddy_return1_ptr_extent(fc->membuddy, &fcsl_mem);
assert(fcsl->next == fcsl_pending);
fcsl->next = NULL;
AZ(pthread_mutex_lock(&fco->mtx));
assert(fco->seglstate == SEGL_LOADING);
fco->seglstate = SEGL_DONE;
......
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