store_rebuild.cc
Go to the documentation of this file.
161 debugs(20, 5, "not responsible for rebuilding any cache_dirs: " << Config.cacheSwap.n_configured);
void storeRebuildProgress(int sd_index, int total, int sofar)
Definition: store_rebuild.cc:214
int opt_store_doublecheck
bool storeRebuildParseEntry(MemBuf &buf, StoreEntry &tmpe, cache_key *key, StoreRebuildData &stats, uint64_t expectedSize)
Definition: store_rebuild.cc:284
Definition: ntlm_smb_lm_auth.cc:68
void updateStartTime(const timeval &dirStartTime)
maintain earliest initiation time across multiple indexing cache_dirs
Definition: store_rebuild.cc:46
struct StatCounters::@119::@123 disk
struct StatCounters::@119 syscalls
struct timeval current_time
the current UNIX time in timeval {seconds, microseconds} format
Definition: gadgets.cc:18
bool hasDisk(const sdirno dirn=-1, const sfileno filen=-1) const
Definition: store.cc:1929
Definition: MemBuf.h:23
static void storeCleanupComplete()
handles the completion of zero or more post-rebuild storeCleanup() steps
Definition: store_rebuild.cc:53
bool storeRebuildLoadEntry(int fd, int diskIndex, MemBuf &buf, StoreRebuildData &)
loads entry from disk; fills supplied memory buffer on success
Definition: store_rebuild.cc:263
virtual void next(void(callback)(void *cbdata), void *cbdata)=0
virtual bool isDone() const =0
virtual StoreEntry * currentItem()=0
std::ostream & CurrentException(std::ostream &os)
prints active (i.e., thrown but not yet handled) exception
Definition: TextException.cc:88
static int store_dirs_rebuilding
the number of cache_dirs being rebuilt; TODO: move to Disks::Rebuilding
Definition: Controller.h:133
void print(std::ostream &os) const
brief progress report suitable for level-0/1 debugging
Definition: store_rebuild.cc:247
advancement of work that consists of (usually known number) of similar steps
Definition: store_rebuild.h:46
Definition: Store.h:37
bool started() const
whether we have worked on indexing this(these) cache_dir(s) before
Definition: store_rebuild.h:26
size_t UnpackIndexSwapMeta(const MemBuf &, StoreEntry &, cache_key *)
Definition: SwapMetaIn.cc:243
CacheDigest * store_digest
Store::Disk & disk() const
the disk this entry is [being] cached on; asserts for entries w/o a disk
Definition: store.cc:1920
Definition: store_rebuild.cc:36
void eventAdd(const char *name, EVH *func, void *arg, double when, int weight, bool cbdata)
Definition: event.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