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.
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);