RebuildState.cc
Go to the documentation of this file.
251 Fs::Ufs::RebuildState::evictStaleAndContinue(const cache_key *candidateKey, const time_t maxRef, int &staleCount)
275 debugs(47, DBG_IMPORTANT, "Done reading " << sd->path << " swaplog (" << n_read << " entries)");
315 debugs(47, DBG_IMPORTANT, "WARNING: " << counts.bad_log_op << " invalid swap log entries found");
393 debugs(47, DBG_IMPORTANT, "ERROR: " << MYNAME << "in opendir (" << fullpath << "): " << xstrerr(xerrno));
432 debugs(47, DBG_IMPORTANT, "ERROR: " << MYNAME << "opening " << fullfilename << ": " << xstrerr(xerrno));
void storeRebuildProgress(int sd_index, int total, int sofar)
Definition: store_rebuild.cc:214
struct Fs::Ufs::RebuildState::Flags flags
void log(char *format,...)
bool storeRebuildParseEntry(MemBuf &buf, StoreEntry &tmpe, cache_key *key, StoreRebuildData &stats, uint64_t expectedSize)
Definition: store_rebuild.cc:284
void updateStartTime(const timeval &dirStartTime)
maintain earliest initiation time across multiple indexing cache_dirs
Definition: store_rebuild.cc:46
Definition: cbdata.cc:37
void addIfFresh(const cache_key *key, sfileno file_number, uint64_t swap_file_sz, time_t expires, time_t timestamp, time_t lastref, time_t lastmod, uint32_t refcount, uint16_t flags)
if the loaded entry metadata is still relevant, indexes the entry
Definition: RebuildState.cc:220
static bool FilenoBelongsHere(int fn, int cachedir, int level1dir, int level2dir)
Definition: UFSSwapDir.cc:1115
int store_open_disk_fd
Definition: RebuildState.h:24
struct timeval current_time
the current UNIX time in timeval {seconds, microseconds} format
Definition: gadgets.cc:18
time_t getCurrentTime() STUB_RETVAL(0) int tvSubUsec(struct timeval
Definition: MemBuf.h:23
AsHex< Integer > asHex(const Integer n)
a helper to ease AsHex object creation
Definition: IoManip.h:169
int reconfiguring
bool storeRebuildLoadEntry(int fd, int diskIndex, MemBuf &buf, StoreRebuildData &)
loads entry from disk; fills supplied memory buffer on success
Definition: store_rebuild.cc:263
CBDATA_NAMESPACED_CLASS_INIT(Fs::Ufs, RebuildState)
Definition: StoreSwapLogData.h:82
const char * swap_log_op_str[]
Definition: forward.h:15
Definition: Store.h:37
static StoreEntry * addedEntry(Store::Disk *aStore, String name, String, String)
Definition: testStoreController.cc:101
bool evictStaleAndContinue(const cache_key *candidateKey, const time_t maxRef, int &staleCount)
Definition: RebuildState.cc:251
bool sane() const
consistency self-check: whether the data appears to make sense
Definition: StoreSwapLogData.cc:53
int getNextFile(sfileno *, int *size)
Definition: RebuildState.cc:354
int opt_foreground_rebuild
static UFSSwapLogParser * GetUFSSwapLogParser(FILE *fp)
Definition: UFSSwapLogParser.cc:81
Definition: RebuildState.h:21
void eventAdd(const char *name, EVH *func, void *arg, double when, int weight, bool cbdata)
Definition: event.cc:107
RebuildState(const RefCount< UFSSwapDir > &sd)
Definition: RebuildState.cc:32
void rebuildStep()
load entries from swap.state or files until we run out of entries or time
Definition: RebuildState.cc:107
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products