You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2019/11/19 02:31:27 UTC
[trafficserver] branch 9.0.x updated: remap_stats: Fix BufferWriter
usage error.
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 226d254 remap_stats: Fix BufferWriter usage error.
226d254 is described below
commit 226d2544643a9b44d22d997ce0fb725ed245049e
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Sat Nov 16 15:05:58 2019 -0600
remap_stats: Fix BufferWriter usage error.
(cherry picked from commit fa47dfc118378e359a506e4f60f911673ed7e05b)
---
plugins/experimental/remap_stats/remap_stats.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/experimental/remap_stats/remap_stats.cc b/plugins/experimental/remap_stats/remap_stats.cc
index 43df970..6b4751f 100644
--- a/plugins/experimental/remap_stats/remap_stats.cc
+++ b/plugins/experimental/remap_stats/remap_stats.cc
@@ -143,9 +143,9 @@ handle_post_remap(TSCont cont, TSEvent event ATS_UNUSED, void *edata)
}
static void
-create_stat_name(ts::LocalBufferWriter<MAX_STAT_LENGTH> &stat_name, std::string_view h, std::string_view b)
+create_stat_name(ts::FixedBufferWriter &stat_name, std::string_view h, std::string_view b)
{
- stat_name.reset().reduce(1);
+ stat_name.reset().clip(1);
stat_name.print("plugin.{}.{}.{}", PLUGIN_NAME, h, b);
stat_name.extend(1).write('\0');
}