From 512cec599eed797d5a6b7ee30e1541dbce2fd07e Mon Sep 17 00:00:00 2001 From: Jon Meredith Date: Fri, 5 Jun 2009 16:00:25 -0600 Subject: [PATCH] In cases where there was more than one pending request and no active requests, the linked list would be corrupted linking the pending request on the list of active requests. --- c_src/bdberl_tpool.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c_src/bdberl_tpool.c b/c_src/bdberl_tpool.c index 147f134..35ba7da 100644 --- a/c_src/bdberl_tpool.c +++ b/c_src/bdberl_tpool.c @@ -226,6 +226,10 @@ static TPoolJob* next_job(TPool* tpool) { job->next = tpool->active_jobs; } + else + { + job->next = NULL; + } tpool->active_jobs = job; // Update counters