This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  af8ff16   Fix Assertion failure in the regex_revalidate plugin.
af8ff16 is described below

commit af8ff16466a410c2e590655586c8b8586c32f0bc
Author: John J. Rushford <jrushf...@apache.org>
AuthorDate: Wed Feb 1 20:34:44 2017 +0000

    Fix Assertion failure in the regex_revalidate plugin.
    
    Since TS-4387, Calls to TSContSchedule/TSContScheduleEvery(), require
    that the continuation associated with the TSCont parameter must have a 
mutex.
    
    (cherry picked from commit 0b1f28b53174baf5cfff54a2d224ffbe09a64374)
---
 plugins/regex_revalidate/regex_revalidate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/regex_revalidate/regex_revalidate.c 
b/plugins/regex_revalidate/regex_revalidate.c
index 94eaa01..1c352b8 100644
--- a/plugins/regex_revalidate/regex_revalidate.c
+++ b/plugins/regex_revalidate/regex_revalidate.c
@@ -362,7 +362,7 @@ config_handler(TSCont cont, TSEvent event ATS_UNUSED, void 
*edata ATS_UNUSED)
     iptr = __sync_val_compare_and_swap(&(pstate->invalidate_list), 
pstate->invalidate_list, i);
 
     if (iptr) {
-      free_cont = TSContCreate(free_handler, NULL);
+      free_cont = TSContCreate(free_handler, TSMutexCreate());
       TSContDataSet(free_cont, (void *)iptr);
       TSContSchedule(free_cont, FREE_TMOUT, TS_THREAD_POOL_TASK);
     }

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Reply via email to