This is an automated email from the ASF dual-hosted git repository. sorber pushed a commit to branch 6.2.x in repository https://git-dual.apache.org/repos/asf/trafficserver.git
commit eacaaadcdba946f25deef6759a2746e45f363525 Author: Shen Zhang <sezh...@linkedin.com> AuthorDate: Wed May 4 00:46:21 2016 -0700 TS-4387: When calling TSContSchedule()/TSContScheduleEvery(), the passed in parameter TSCont have to have MUTEX; otherwise if we call TSContSchedule()/TSContScheduleEvery() more than once using same TSCont, only the first call will take effect; all the following schedule are ignored due to MUTEX issue. This closes #603 (cherry picked from commit f96c1f505564280b3f12a98c3ae7abc33b73b168) --- proxy/InkAPI.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc index 5ec1466..f32f7d5 100644 --- a/proxy/InkAPI.cc +++ b/proxy/InkAPI.cc @@ -4229,6 +4229,8 @@ TSContSchedule(TSCont contp, ink_hrtime timeout, TSThreadPool tp) { sdk_assert(sdk_sanity_check_iocore_structure(contp) == TS_SUCCESS); + FORCE_PLUGIN_SCOPED_MUTEX(contp); + INKContInternal *i = (INKContInternal *)contp; TSAction action; @@ -4281,6 +4283,8 @@ TSContScheduleEvery(TSCont contp, ink_hrtime every, TSThreadPool tp) { sdk_assert(sdk_sanity_check_iocore_structure(contp) == TS_SUCCESS); + FORCE_PLUGIN_SCOPED_MUTEX(contp); + INKContInternal *i = (INKContInternal *)contp; TSAction action; -- To stop receiving notification emails like this one, please contact "commits@trafficserver.apache.org" <commits@trafficserver.apache.org>.