Updated Branches: refs/heads/master 49dcb0f09 -> a17158a3f
make default v3.x for cacheurl plugin Project: http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/commit/a17158a3 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/tree/a17158a3 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/diff/a17158a3 Branch: refs/heads/master Commit: a17158a3f6e0e278a563e1c8e9812fdec815d354 Parents: 49dcb0f Author: Zhao Yongming <[email protected]> Authored: Sun Apr 15 15:10:30 2012 +0800 Committer: Zhao Yongming <[email protected]> Committed: Sun Apr 15 15:10:30 2012 +0800 ---------------------------------------------------------------------- cacheurl/cacheurl.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver-plugins/blob/a17158a3/cacheurl/cacheurl.c ---------------------------------------------------------------------- diff --git a/cacheurl/cacheurl.c b/cacheurl/cacheurl.c index 0a0be87..c2f5680 100644 --- a/cacheurl/cacheurl.c +++ b/cacheurl/cacheurl.c @@ -345,10 +345,8 @@ static int check_ts_version() { return 0; } - /* Need at least TS 2.1.6 */ - if (major_ts_version == 2 && ( - (minor_ts_version == 1 && patch_ts_version >= 6 ) || - minor_ts_version > 1)) { + /* we are now v3.x */ + if (major_ts_version >= 3) { result = 1; } @@ -370,13 +368,13 @@ void TSPluginInit(int argc, const char *argv[]) { info.vendor_name = "OmniTI"; info.support_email = "[email protected]"; - if (TSPluginRegister(TS_SDK_VERSION_2_0, &info) != TS_SUCCESS) { + if (TSPluginRegister(TS_SDK_VERSION_3_0, &info) != TS_SUCCESS) { initialization_error("Plugin registration failed."); return; } if (!check_ts_version()) { - initialization_error("Plugin requires Traffic Server 2.0 or later"); + initialization_error("Plugin requires Traffic Server 3.0 or later"); return; }
