This is an automated email from the ASF dual-hosted git repository.

duke8253 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 213368f0b1 W means a fresh Read While Write cache hit (#10924)
213368f0b1 is described below

commit 213368f0b137380c368bd3c96601511259b54ed4
Author: Fei Deng <[email protected]>
AuthorDate: Tue Dec 12 11:59:38 2023 -0500

    W means a fresh Read While Write cache hit (#10924)
---
 src/traffic_via/traffic_via.cc   | 1 +
 tools/traffic_via/traffic_via.pl | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/traffic_via/traffic_via.cc b/src/traffic_via/traffic_via.cc
index 561a4e00cf..1344107c0e 100644
--- a/src/traffic_via/traffic_via.cc
+++ b/src/traffic_via/traffic_via.cc
@@ -133,6 +133,7 @@ standardViaLookup(char flag)
     viaTable->viaData[static_cast<unsigned char>('H')] = "in cache, fresh (a 
cache \"HIT\")";
     viaTable->viaData[static_cast<unsigned char>('S')] = "in cache, stale (a 
cache \"MISS\")";
     viaTable->viaData[static_cast<unsigned char>('R')] = "in cache, fresh Ram 
hit (a cache \"HIT\")";
+    viaTable->viaData[static_cast<unsigned char>('W')] = "in cache, fresh Read 
While Write (a cache \"HIT\")";
     viaTable->viaData[static_cast<unsigned char>('M')] = "miss (a cache 
\"MISS\")";
     viaTable->viaData[static_cast<unsigned char>(' ')] = "no cache lookup";
     break;
diff --git a/tools/traffic_via/traffic_via.pl b/tools/traffic_via/traffic_via.pl
index f34d52bb6b..01d81ee20c 100755
--- a/tools/traffic_via/traffic_via.pl
+++ b/tools/traffic_via/traffic_via.pl
@@ -54,6 +54,7 @@ my @proxy_header_array = (
             'H' => "in cache, fresh (a cache \"HIT\")",
             'S' => "in cache, stale (a cache \"MISS\")",
             'R' => "in cache, fresh Ram hit (a cache \"HIT\")",
+            'W' => "in cache, fresh Read While Write (a cache \"HIT\")",
             'M' => "miss (a cache \"MISS\")",
             ' ' => "no cache lookup",
         },

Reply via email to