From: Alex Rousskov Date: Thu, 3 Feb 2011 18:58:58 +0000 (-0700) Subject: Added comments to explain slot read level maintenance assumptions. X-Git-Tag: take02~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd7ac58bfa6d45ed7fe2310bcc7b6d17ffa19b4c;p=thirdparty%2Fsquid.git Added comments to explain slot read level maintenance assumptions. --- diff --git a/src/fs/rock/RockSwapDir.cc b/src/fs/rock/RockSwapDir.cc index 00e7825160..6fb6f9bc7e 100644 --- a/src/fs/rock/RockSwapDir.cc +++ b/src/fs/rock/RockSwapDir.cc @@ -361,6 +361,9 @@ Rock::SwapDir::createStoreIO(StoreEntry &e, StoreIOState::STFNCB *cbFile, StoreI } basics->set(e); + // XXX: We rely on our caller, storeSwapOutStart(), to set e->fileno. + // If that does not happen, the entry will not decrement the read level! + IoState *sio = new IoState(this, &e, cbFile, cbIo, data); sio->swap_dirn = index;