From: wessels <> Date: Fri, 1 Nov 1996 13:52:13 +0000 (+0000) Subject: change order of sanity checks in neighborsUdpAck() X-Git-Tag: SQUID_3_0_PRE1~5551 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d1c6a4f372c7156cdd7ee447c314b60355baffc;p=thirdparty%2Fsquid.git change order of sanity checks in neighborsUdpAck() --- diff --git a/src/neighbors.cc b/src/neighbors.cc index aa5740a3c7..b11d377ff0 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -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; }