trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject [trafficserver] branch master updated: TS-4976: Regularize plugins - txn_data_sink.
Date Thu, 14 Sep 2017 17:45:13 GMT
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 712823e  TS-4976: Regularize plugins - txn_data_sink.
712823e is described below

commit 712823e0d025ddde3f0e0c5084af53a78e4f7ec9
Author: Alan M. Carroll <amc@apache.org>
AuthorDate: Wed Sep 13 10:07:09 2017 -0500

    TS-4976: Regularize plugins - txn_data_sink.
---
 doc/developer-guide/plugins/http-transformations/index.en.rst         | 2 +-
 example/Makefile.am                                                   | 4 ++--
 .../{txn-data-sink/txn-data-sink.c => txn_data_sink/txn_data_sink.c}  | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc/developer-guide/plugins/http-transformations/index.en.rst b/doc/developer-guide/plugins/http-transformations/index.en.rst
index cc35380..7e747d2 100644
--- a/doc/developer-guide/plugins/http-transformations/index.en.rst
+++ b/doc/developer-guide/plugins/http-transformations/index.en.rst
@@ -181,5 +181,5 @@ and will keep the transaction and the origin server connection up. This
is usefu
 run to completion even if the user agent disconnects. Examples would be a standard transform
that is expensive to initiate, or expensive
 origin server connections that should be :ts:cv:`shared <proxy.config.http.server_session_sharing.match>`.
 
-There is an `example plugin <https://github.com/apache/trafficserver/blob/master/example/txn-data-sink/txn-data-sink.c>`_
that demonstrates
+There is an `example plugin <https://github.com/apache/trafficserver/blob/master/example/txn_data_sink/txn_data_sink.c>`_
that demonstrates
 this used as a pure data sink to keep the transaction up regardless of whether the user agent
disconnects.
diff --git a/example/Makefile.am b/example/Makefile.am
index d4e4213..27621e3 100644
--- a/example/Makefile.am
+++ b/example/Makefile.am
@@ -58,7 +58,7 @@ example_Plugins = \
 	ssl_sni.la \
 	statistic.la \
 	thread_1.la \
-	txn-data-sink.la \
+	txn_data_sink.la \
 	version.la \
 	disable_http2.la
 
@@ -125,7 +125,7 @@ ssl_sni_whitelist_la_LIBADD = $(libtsconfig)
 disable_http2_la_SOURCES = disable_http2/disable_http2.cc
 statistic_la_SOURCES = statistic/statistic.cc
 thread_1_la_SOURCES = thread_1/thread_1.c
-txn_data_sink_la_SOURCES = txn-data-sink/txn-data-sink.c
+txn_data_sink_la_SOURCES = txn_data_sink/txn_data_sink.c
 version_la_SOURCES = version/version.c
 redirect_1_la_SOURCES = redirect_1/redirect_1.c
 session_hooks_la_SOURCES = session_hooks/session_hooks.c
diff --git a/example/txn-data-sink/txn-data-sink.c b/example/txn_data_sink/txn_data_sink.c
similarity index 98%
rename from example/txn-data-sink/txn-data-sink.c
rename to example/txn_data_sink/txn_data_sink.c
index 3f22fa1..60d10de 100644
--- a/example/txn-data-sink/txn-data-sink.c
+++ b/example/txn_data_sink/txn_data_sink.c
@@ -36,8 +36,8 @@
 #define __STDC_FORMAT_MACROS 1
 #include <inttypes.h>
 
-#define PLUGIN_NAME "txn-data-sink"
-#define PCP "[" PLUGIN_NAME "]"
+#define PLUGIN_NAME "txn_data_sink"
+#define PCP "[" PLUGIN_NAME "] "
 
 // Activate the data sink if this field is present in the request.
 static const char FLAG_MIME_FIELD[] = "TS-Agent";

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

Mime
View raw message