TS-4271: Fix clearing metrics.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/cfcf6c64 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/cfcf6c64 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/cfcf6c64 Branch: refs/heads/master Commit: cfcf6c64ee0bc9251f0817214dc04552d190bb41 Parents: 4dba248 Author: James Peach <[email protected]> Authored: Sat Mar 12 11:25:28 2016 -0800 Committer: James Peach <[email protected]> Committed: Wed Mar 16 20:54:48 2016 -0700 ---------------------------------------------------------------------- mgmt/api/TSControlMain.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/cfcf6c64/mgmt/api/TSControlMain.cc ---------------------------------------------------------------------- diff --git a/mgmt/api/TSControlMain.cc b/mgmt/api/TSControlMain.cc index 3aafd07..8506058 100644 --- a/mgmt/api/TSControlMain.cc +++ b/mgmt/api/TSControlMain.cc @@ -977,7 +977,7 @@ handle_stats_reset(int fd, void *req, size_t reqlen) MgmtMarshallInt err; err = recv_mgmt_request(req, reqlen, STATS_RESET_NODE, &optype, &name); - if (err != TS_ERR_OKAY) { + if (err == TS_ERR_OKAY) { err = StatsReset(optype == STATS_RESET_CLUSTER, name); }
