]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added comments to explain slot read level maintenance assumptions.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 3 Feb 2011 18:58:58 +0000 (11:58 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 3 Feb 2011 18:58:58 +0000 (11:58 -0700)
src/fs/rock/RockSwapDir.cc

index 00e7825160f5d9c8777f7c3df7716292b5054035..6fb6f9bc7e808b6cc0dfa83ddf76c1b4590284da 100644 (file)
@@ -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;