};
bool
-storeRebuildLoadEntry(int fd, int diskIndex, MemBuf &buf,
- StoreRebuildData &counts)
+storeRebuildLoadEntry(int fd, int diskIndex, MemBuf &buf, StoreRebuildData &)
{
if (fd < 0)
return false;
bool
storeRebuildParseEntry(MemBuf &buf, StoreEntry &tmpe, cache_key *key,
- StoreRebuildData &counts,
+ StoreRebuildData &stats,
uint64_t expectedSize)
{
int swap_hdr_len = 0;
}
if (EBIT_TEST(tmpe.flags, KEY_PRIVATE)) {
- ++ counts.badflags;
+ ++ stats.badflags;
return false;
}
}
bool
-storeRebuildKeepEntry(const StoreEntry &tmpe, const cache_key *key,
- StoreRebuildData &counts)
+storeRebuildKeepEntry(const StoreEntry &tmpe, const cache_key *key, StoreRebuildData &stats)
{
/* this needs to become
* 1) unpack url
if (e->lastref >= tmpe.lastref) {
/* key already exists, old entry is newer */
/* keep old, ignore new */
- ++counts.dupcount;
+ ++stats.dupcount;
// For some stores, get() creates/unpacks a store entry. Signal
// such stores that we will no longer use the get() result:
/* URL already exists, this swapfile not being used */
/* junk old, load new */
e->release(); /* release old entry */
- ++counts.dupcount;
+ ++stats.dupcount;
}
}