From 2fdea1bdb5ebac5bd31d0dd6a92fcefedf449d0c Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Wed, 27 Jun 2012 23:11:18 -0600 Subject: [PATCH] Account for Store disk client quota when bandwidth-limiting the server. It is not clear why the store client type matters when MemObject::mostBytesAllowed() is trying to find the maximum delay pool quota for reading from the next hop HTTP server. Whether the client(s) are reading from disk or RAM, the corresponding server-side bandwidth ought to be limited. This code was removed as a part of bug 3462 investigation, but it is not needed to fix bug 3462. --- src/MemObject.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/MemObject.cc b/src/MemObject.cc index 1cf74b8e94..5e677ccbd1 100644 --- a/src/MemObject.cc +++ b/src/MemObject.cc @@ -477,10 +477,6 @@ MemObject::mostBytesAllowed() const #endif - if (sc->getType() != STORE_MEM_CLIENT) - /* reading off disk */ - continue; - j = sc->delayId.bytesWanted(0, sc->copyInto.length); if (j > jmax) { -- 2.47.2