You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2018/08/17 15:07:05 UTC
[trafficserver] branch master updated: adding a Mutex to the
continuation
This is an automated email from the ASF dual-hosted git repository.
amc 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 d846436 adding a Mutex to the continuation
d846436 is described below
commit d846436ab22ea8c0283bd7656d2305974e79f8d1
Author: dmorilha <dm...@gmail.com>
AuthorDate: Fri Aug 10 08:40:38 2018 -0700
adding a Mutex to the continuation
---
plugins/stats_over_http/stats_over_http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/stats_over_http/stats_over_http.c b/plugins/stats_over_http/stats_over_http.c
index 72d4675..90356f2 100644
--- a/plugins/stats_over_http/stats_over_http.c
+++ b/plugins/stats_over_http/stats_over_http.c
@@ -329,6 +329,6 @@ init:
/* Create a continuation with a mutex as there is a shared global structure
containing the headers to add */
- TSHttpHookAdd(TS_HTTP_READ_REQUEST_HDR_HOOK, TSContCreate(stats_origin, NULL));
+ TSHttpHookAdd(TS_HTTP_READ_REQUEST_HDR_HOOK, TSContCreate(stats_origin, TSMutexCreate()));
TSDebug(PLUGIN_NAME, "stats module registered");
}