#include "store_key_md5.h"


Go to the source code of this file.
Classes | |
class | StoreRebuildData |
cache_dir(s) indexing statistics More... | |
class | Progress |
advancement of work that consists of (usually known number) of similar steps More... | |
Functions | |
std::ostream & | operator<< (std::ostream &os, const Progress &p) |
void | storeRebuildStart (void) |
void | storeRebuildComplete (StoreRebuildData *) |
void | storeRebuildProgress (int sd_index, int total, int sofar) |
bool | storeRebuildLoadEntry (int fd, int diskIndex, MemBuf &buf, StoreRebuildData &counts) |
loads entry from disk; fills supplied memory buffer on success More... | |
bool | storeRebuildParseEntry (MemBuf &buf, StoreEntry &e, cache_key *key, StoreRebuildData &counts, uint64_t expectedSize) |
parses entry buffer and validates entry metadata; fills e on success More... | |
Function Documentation
◆ operator<<()
|
inline |
Definition at line 59 of file store_rebuild.h.
References Progress::print().
◆ storeRebuildComplete()
void storeRebuildComplete | ( | StoreRebuildData * | ) |
Definition at line 122 of file store_rebuild.cc.
References assert, StoreRebuildData::bad_log_op, StoreRebuildData::badflags, StoreRebuildData::cancelcount, StoreRebuildData::clashcount, counts, current_time, debugs, StoreRebuildData::dupcount, eventAdd(), StoreRebuildData::expcount, Debug::Extra(), Important, StoreRebuildData::invalid, NULL, StoreRebuildData::objcount, RebuildProgress, StoreRebuildData::scancount, StoreRebuildData::startTime, Store::Controller::store_dirs_rebuilding, storeCleanup(), tvSubDsec(), StoreRebuildData::updateStartTime(), StoreRebuildData::validations, xfree, and StoreRebuildData::zero_object_sz.
Referenced by Store::Disks::init(), Rock::SwapDir::ioCompletedNotification(), and Rock::Rebuild::swanSong().
◆ storeRebuildLoadEntry()
bool storeRebuildLoadEntry | ( | int | fd, |
int | diskIndex, | ||
MemBuf & | buf, | ||
StoreRebuildData & | counts | ||
) |
Definition at line 303 of file store_rebuild.cc.
References MemBuf::appended(), assert, DBG_IMPORTANT, debugs, StatCounters::disk, FD_READ_METHOD(), MemBuf::hasSpace(), MemBuf::space(), MemBuf::spaceSize(), statCounter, StatCounters::syscalls, and xstrerr().
Referenced by Rock::Rebuild::loadOneSlot(), and Fs::Ufs::RebuildState::rebuildFromDirectory().
◆ storeRebuildParseEntry()
bool storeRebuildParseEntry | ( | MemBuf & | buf, |
StoreEntry & | e, | ||
cache_key * | key, | ||
StoreRebuildData & | counts, | ||
uint64_t | expectedSize | ||
) |
Definition at line 324 of file store_rebuild.cc.
References assert, MemBuf::content(), MemBuf::contentSize(), StoreMetaUnpacker::createStoreMeta(), DBG_IMPORTANT, debugs, EBIT_TEST, StoreEntry::flags, for_each(), StoreMetaUnpacker::isBufferZero(), hash_link::key, KEY_PRIVATE, NULL, SQUID_MD5_DIGEST_LENGTH, Ping::stats, storeKeyNull(), storeSwapTLVFree(), and StoreEntry::swap_file_sz.
Referenced by Rock::Rebuild::importEntry(), and Fs::Ufs::RebuildState::rebuildFromDirectory().
◆ storeRebuildProgress()
Definition at line 203 of file store_rebuild.cc.
References SquidConfig::cacheSwap, Config, debugs, double, Important, Store::DiskConfig::n_configured, NULL, RebuildProgress, store_rebuild_progress::scanned, squid_curtime, and store_rebuild_progress::total.
Referenced by Rock::Rebuild::loadingSteps(), and Fs::Ufs::RebuildState::rebuildStep().
◆ storeRebuildStart()
void storeRebuildStart | ( | void | ) |
Definition at line 180 of file store_rebuild.cc.
References SquidConfig::cacheSwap, Config, counts, Store::DiskConfig::n_configured, RebuildProgress, and xcalloc().
Referenced by storeInit().