]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
don't need HIERARCHICAL StoreEntry->flag any more.
authorwessels <>
Tue, 26 May 1998 21:48:26 +0000 (21:48 +0000)
committerwessels <>
Tue, 26 May 1998 21:48:26 +0000 (21:48 +0000)
src/enums.h
src/peer_select.cc
src/store.cc

index a28b30256fbcfaf94b53a2280355f9de58e7d0f7..511c1bdfff2fdef41a0a14c79dd836a6680419f0 100644 (file)
@@ -427,7 +427,6 @@ enum {
     ENTRY_CACHABLE,
     ENTRY_DISPATCHED,
     KEY_PRIVATE,
-    HIERARCHICAL,
     ENTRY_NEGCACHED,
     ENTRY_VALIDATED,
     ENTRY_BAD_LENGTH
index 3a9231bd2c9b0a981dcb69756c949c177cb03dc8..4e097b5f945b4ff8b3afc89668cdb8c2559d43dc 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: peer_select.cc,v 1.61 1998/05/21 22:39:00 wessels Exp $
+ * $Id: peer_select.cc,v 1.62 1998/05/26 15:48:27 wessels Exp $
  *
  * DEBUG: section 44    Peer Selection Algorithm
  * AUTHOR: Duane Wessels
@@ -96,7 +96,7 @@ peerSelectIcpPing(request_t * request, int direct, StoreEntry * entry)
     if (entry->ping_status != PING_NONE)
        return 0;
     assert(direct != DIRECT_YES);
-    if (!EBIT_TEST(entry->flag, HIERARCHICAL) && direct != DIRECT_NO)
+    if (!EBIT_TEST(request->flags, REQ_HIERARCHICAL) && direct != DIRECT_NO)
        return 0;
     if (EBIT_TEST(entry->flag, KEY_PRIVATE) && !neighbors_do_private_keys)
        if (direct != DIRECT_NO)
index 8230418da2826233389d59c4f3029f974cf835c9..9dcce759ad015be7b9a4292fe7be293c1c176624 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.417 1998/05/22 23:44:29 wessels Exp $
+ * $Id: store.cc,v 1.418 1998/05/26 15:48:28 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager
  * AUTHOR: Harvest Derived
@@ -425,10 +425,6 @@ storeCreateEntry(const char *url, const char *log_url, int flags, method_t metho
        EBIT_CLR(e->flag, ENTRY_CACHABLE);
        storeReleaseRequest(e);
     }
-    if (EBIT_TEST(flags, REQ_HIERARCHICAL))
-       EBIT_SET(e->flag, HIERARCHICAL);
-    else
-       EBIT_CLR(e->flag, HIERARCHICAL);
     e->store_status = STORE_PENDING;
     storeSetMemStatus(e, NOT_IN_MEMORY);
     e->swap_status = SWAPOUT_NONE;