trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jrushf...@apache.org
Subject [trafficserver] branch 6.2.x updated: Fix Assertion failure in the regex_revalidate plugin.
Date Wed, 01 Feb 2017 19:19:15 GMT
This is an automated email from the ASF dual-hosted git repository.

jrushford pushed a commit to branch 6.2.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

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

commit e867cc5e28cbbbafd6564a5539246d5267b6d334
Author: John J. Rushford <jrushford@apache.org>
AuthorDate: Wed Feb 1 19:17:00 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.
---
 plugins/experimental/regex_revalidate/regex_revalidate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/experimental/regex_revalidate/regex_revalidate.c b/plugins/experimental/regex_revalidate/regex_revalidate.c
index 0ff10ff..658f15a 100644
--- a/plugins/experimental/regex_revalidate/regex_revalidate.c
+++ b/plugins/experimental/regex_revalidate/regex_revalidate.c
@@ -348,7 +348,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>'].

Mime
View raw message