]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
change order of sanity checks in neighborsUdpAck()
authorwessels <>
Fri, 1 Nov 1996 13:52:13 +0000 (13:52 +0000)
committerwessels <>
Fri, 1 Nov 1996 13:52:13 +0000 (13:52 +0000)
src/neighbors.cc

index aa5740a3c7244755a362cbbce21cf8902f9c0d83..b11d377ff070eabc06b94f58af18a16d8c1e9911 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: neighbors.cc,v 1.76 1996/10/31 18:30:20 wessels Exp $
+ * $Id: neighbors.cc,v 1.77 1996/11/01 06:52:13 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -582,24 +582,24 @@ neighborsUdpAck(int fd, char *url, icp_common_t * header, struct sockaddr_in *fr
     if (opcode > ICP_OP_END)
        return;
     opcode_d = IcpOpcodeStr[opcode];
-    if (mem == NULL) {
-       debug(15, 1, "Ignoring %s for missing mem_obj: %s\n", opcode_d, url);
+    /* check if someone is already fetching it */
+    if (BIT_TEST(entry->flag, ENTRY_DISPATCHED)) {
+       debug(15, 3, "neighborsUdpAck: '%s' already being fetched.\n", url);
        neighborCountIgnored(e, opcode);
        return;
     }
-    /* check if someone is already fetching it */
-    if (BIT_TEST(entry->flag, ENTRY_DISPATCHED)) {
-       debug(15, 5, "neighborsUdpAck: '%s' already being fetched.\n", url);
+    if (mem == NULL) {
+       debug(15, 1, "Ignoring %s for missing mem_obj: %s\n", opcode_d, url);
        neighborCountIgnored(e, opcode);
        return;
     }
     if (entry->ping_status != PING_WAITING) {
-       debug(15, 5, "neighborsUdpAck: Unexpected %s for %s\n", opcode_d, url);
+       debug(15, 1, "neighborsUdpAck: Unexpected %s for %s\n", opcode_d, url);
        neighborCountIgnored(e, opcode);
        return;
     }
     if (entry->lock_count == 0) {
-       debug(12, 3, "neighborsUdpAck: '%s' has no locks\n", url);
+       debug(12, 1, "neighborsUdpAck: '%s' has no locks\n", url);
        neighborCountIgnored(e, opcode);
        return;
     }