]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove entryLimitAllowed() TODO from RockSwapDirRr::run().
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 4 Oct 2011 17:29:09 +0000 (21:29 +0400)
committerDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 4 Oct 2011 17:29:09 +0000 (21:29 +0400)
RockSwapDirRr::run() calls sd->entryLimitAllowed() when sd does not
have a map yet, which causes entryLimitAllowed() to use zero for the
lower limit.  But that OK so we can remove the TODO.

src/fs/rock/RockSwapDir.cc

index 75d6eb19d9754e6f2c09af5ed6e15bf7356599e5..8924d4321c62c36ef80e2f155608e4a3fd732e8d 100644 (file)
@@ -833,7 +833,6 @@ void RockSwapDirRr::create(const RunnerRegistry &)
     Must(owners.empty());
     for (int i = 0; i < Config.cacheSwap.n_configured; ++i) {
         if (const Rock::SwapDir *const sd = dynamic_cast<Rock::SwapDir *>(INDEXSD(i))) {
-            // TODO: check whether entryLimitAllowed() has map here
             Rock::SwapDir::DirMap::Owner *const owner =
                 Rock::SwapDir::DirMap::Init(sd->path, sd->entryLimitAllowed());
             owners.push_back(owner);