From: robertc <> Date: Tue, 4 Mar 2003 12:56:02 +0000 (+0000) Subject: Summary: Fix store.cc without delay pools. X-Git-Tag: SQUID_3_0_PRE1~284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5f4228424415662cb1888670cfe2a9caabc6f50;p=thirdparty%2Fsquid.git Summary: Fix store.cc without delay pools. Keywords: Fix store.cc without delay pools. --- diff --git a/src/store.cc b/src/store.cc index 01267d7fae..afe8d9527e 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.561 2003/03/04 01:40:30 robertc Exp $ + * $Id: store.cc,v 1.562 2003/03/04 05:56:02 robertc Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -174,16 +174,23 @@ StoreEntry::delayAwareRead(int fd, char *buf, int len, IOCB *handler, void *data assert (mem_obj); /* read ahead limit */ /* Perhaps these two calls should both live in MemObject */ +#if DELAY_POOLS if (!mem_obj->readAheadPolicyCanRead()) { +#endif mem_obj->delayRead(DeferredRead(DeferReader, this, CommRead(fd, buf, len, handler, data))); return; +#if DELAY_POOLS + } /* delay id limit */ mem_obj->mostBytesAllowed().delayRead(DeferredRead(DeferReader, this, CommRead(fd, buf, len, handler, data))); return; + +#endif + } comm_read(fd, buf, amountToRead, handler, data);