11#ifndef SQUID_SRC_STORE_REBUILD_H
12#define SQUID_SRC_STORE_REBUILD_H
49 Progress(
const int64_t stepsCompleted,
const int64_t stepsTotal):
53 void print(std::ostream &os)
const;
advancement of work that consists of (usually known number) of similar steps
Progress(const int64_t stepsCompleted, const int64_t stepsTotal)
int64_t goal
the known total number of work steps (or negative)
void print(std::ostream &os) const
brief progress report suitable for level-0/1 debugging
int64_t completed
the number of finished work steps
cache_dir(s) indexing statistics
void updateStartTime(const timeval &dirStartTime)
maintain earliest initiation time across multiple indexing cache_dirs
bool started() const
whether we have worked on indexing this(these) cache_dir(s) before
timeval startTime
absolute time when the rebuild was initiated
int64_t validations
the number of validated cache entries, slots
unsigned char cache_key
Store key.
static StoreRebuildData counts
void storeRebuildProgress(int sd_index, int total, int sofar)
void storeRebuildComplete(StoreRebuildData *)
std::ostream & operator<<(std::ostream &os, const Progress &p)
bool storeRebuildLoadEntry(int fd, int diskIndex, MemBuf &buf, StoreRebuildData &counts)
loads entry from disk; fills supplied memory buffer on success
bool storeRebuildParseEntry(MemBuf &buf, StoreEntry &e, cache_key *key, StoreRebuildData &counts, uint64_t expectedSize)
void storeRebuildStart(void)