Updated Branches: refs/heads/master 50b007214 -> 6dadea4ce
TS-1564: Logs created via the API in plugins are not rolled Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/6dadea4c Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/6dadea4c Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/6dadea4c Branch: refs/heads/master Commit: 6dadea4cea3da45e432dc52c7f9dadbf891b510a Parents: 50b0072 Author: Craig Forbes <[email protected]> Authored: Fri Nov 9 00:44:52 2012 +0800 Committer: Zhao Yongming <[email protected]> Committed: Fri Nov 9 00:48:43 2012 +0800 ---------------------------------------------------------------------- CHANGES | 2 ++ proxy/logging/LogObject.h | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/6dadea4c/CHANGES ---------------------------------------------------------------------- diff --git a/CHANGES b/CHANGES index 106ef3c..8a620a1 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ -*- coding: utf-8 -*- Changes with Apache Traffic Server 3.3.1 + *) [TS-1564] fix the rolling of Logs created via the API in plugins + *) [TS-1565] TSStringPercentEncode returns one character short in no-op case (no encoding needed). Author: Thach Tran <tranngocthachs at gmail dot com>. http://git-wip-us.apache.org/repos/asf/trafficserver/blob/6dadea4c/proxy/logging/LogObject.h ---------------------------------------------------------------------- diff --git a/proxy/logging/LogObject.h b/proxy/logging/LogObject.h index b163696..141afa1 100644 --- a/proxy/logging/LogObject.h +++ b/proxy/logging/LogObject.h @@ -384,6 +384,9 @@ inline int LogObjectManager::roll_files(long time_now) for (size_t i=0; i < _numObjects; i++) { num_rolled += _objects[i]->roll_files(time_now); } + for (size_t i=0; i < _numAPIobjects; i++) { + num_rolled += _APIobjects[i]->roll_files(time_now); + } return num_rolled; };
