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 2021/05/05 15:14:11 UTC
[trafficserver] 01/04: Remove unused variable
is_revalidation_necessary (#7747)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit da6401515b1633d001242ad44ac2abacaae2ba52
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Wed Apr 28 07:51:22 2021 +0900
Remove unused variable is_revalidation_necessary (#7747)
(cherry picked from commit 3a1c7f60d6bdf0a5a9e3ff7ed2b99e207e5e6f1b)
---
proxy/http/HttpTransact.cc | 3 +--
proxy/http/HttpTransact.h | 1 -
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 72a6817..6b7bbd2 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -2571,8 +2571,7 @@ HttpTransact::HandleCacheOpenReadHitFreshness(State *s)
case FRESHNESS_STALE:
TxnDebug("http_seq", "[HttpTransact::HandleCacheOpenReadHitFreshness] "
"Stale in cache");
- s->cache_lookup_result = HttpTransact::CACHE_LOOKUP_HIT_STALE;
- s->is_revalidation_necessary = true; // to identify a revalidation occurrence
+ s->cache_lookup_result = HttpTransact::CACHE_LOOKUP_HIT_STALE;
break;
default:
ink_assert(!("what_is_document_freshness has returned unsupported code."));
diff --git a/proxy/http/HttpTransact.h b/proxy/http/HttpTransact.h
index b90aebc..d740b16 100644
--- a/proxy/http/HttpTransact.h
+++ b/proxy/http/HttpTransact.h
@@ -668,7 +668,6 @@ public:
HostDBApplicationInfo::HttpVersion updated_server_version = HostDBApplicationInfo::HTTP_VERSION_UNDEFINED;
bool force_dns = false;
MgmtByte cache_open_write_fail_action = 0;
- bool is_revalidation_necessary = false; // Added to check if revalidation is necessary - YTS Team, yamsat
ConnectionAttributes client_info;
ConnectionAttributes parent_info;
ConnectionAttributes server_info;