]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1001: Partial hit results in TCP_HIT, not TCP_MISS
authorhno <>
Sat, 25 Sep 2004 21:54:12 +0000 (21:54 +0000)
committerhno <>
Sat, 25 Sep 2004 21:54:12 +0000 (21:54 +0000)
Set log type to TCP_MISS on partial hits (object currently being retreived)

src/client_side_reply.cc

index f325584baa45d24aa62b8ffd0c7417d3516b8018..0dfedd3bb98782620a556387a8775a9dac453251 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_reply.cc,v 1.70 2004/08/30 03:28:58 robertc Exp $
+ * $Id: client_side_reply.cc,v 1.71 2004/09/25 15:54:12 hno Exp $
  *
  * DEBUG: section 88    Client-side Reply Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -749,7 +749,9 @@ clientReplyContext::cacheHit(StoreIOBuffer result)
          * plain ol' cache hit
          */
 
-        if (e->mem_status == IN_MEMORY)
+        if (e->store_status != STORE_OK)
+            http->log_type = LOG_TCP_MISS;
+        else if (e->mem_status == IN_MEMORY)
             http->logType = LOG_TCP_MEM_HIT;
         else if (Config.onoff.offline)
             http->logType = LOG_TCP_OFFLINE_HIT;