trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject trafficserver git commit: TS-2642 Removes case to fix CID #1352684
Date Tue, 08 Mar 2016 14:26:49 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 8970e51b1 -> 6ea1d767f


TS-2642 Removes case to fix CID #1352684


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/6ea1d767
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/6ea1d767
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/6ea1d767

Branch: refs/heads/master
Commit: 6ea1d767ff42e15cd535c4e174217fdc11aeb67a
Parents: 8970e51
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Tue Mar 8 07:18:36 2016 -0700
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Tue Mar 8 07:21:47 2016 -0700

----------------------------------------------------------------------
 plugins/header_rewrite/statement.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/6ea1d767/plugins/header_rewrite/statement.cc
----------------------------------------------------------------------
diff --git a/plugins/header_rewrite/statement.cc b/plugins/header_rewrite/statement.cc
index e6c3f58..53e4e46 100644
--- a/plugins/header_rewrite/statement.cc
+++ b/plugins/header_rewrite/statement.cc
@@ -88,9 +88,6 @@ Statement::get_now_qualified(NowQualifiers qual) const
 
     localtime_r(&now, &res);
     switch (qual) {
-    case NOW_QUAL_EPOCH:
-      TSReleaseAssert(!"EPOCH should have been handled before");
-      break;
     case NOW_QUAL_YEAR:
       return static_cast<int64_t>(res.tm_year + 1900); // This makes more sense
       break;
@@ -112,6 +109,9 @@ Statement::get_now_qualified(NowQualifiers qual) const
     case NOW_QUAL_YEARDAY:
       return static_cast<int64_t>(res.tm_yday);
       break;
+    default:
+      TSReleaseAssert(!"All cases should have been handled");
+      break;
     }
   }
   return 0;


Mime
View raw message