store_rebuild.h
Go to the documentation of this file.
85bool storeRebuildParseEntry(MemBuf &buf, StoreEntry &e, cache_key *key, StoreRebuildData &counts, uint64_t expectedSize);
Definition: MemBuf.h:24
advancement of work that consists of (usually known number) of similar steps
Definition: store_rebuild.h:47
Progress(const int64_t stepsCompleted, const int64_t stepsTotal)
Definition: store_rebuild.h:49
void print(std::ostream &os) const
brief progress report suitable for level-0/1 debugging
Definition: store_rebuild.cc:238
Definition: Store.h:42
void updateStartTime(const timeval &dirStartTime)
maintain earliest initiation time across multiple indexing cache_dirs
Definition: store_rebuild.cc:46
bool started() const
whether we have worked on indexing this(these) cache_dir(s) before
Definition: store_rebuild.h:26
void storeRebuildProgress(int sd_index, int total, int sofar)
Definition: store_rebuild.cc:205
std::ostream & operator<<(std::ostream &os, const Progress &p)
Definition: store_rebuild.h:60
bool storeRebuildLoadEntry(int fd, int diskIndex, MemBuf &buf, StoreRebuildData &counts)
loads entry from disk; fills supplied memory buffer on success
Definition: store_rebuild.cc:254
bool storeRebuildParseEntry(MemBuf &buf, StoreEntry &e, cache_key *key, StoreRebuildData &counts, uint64_t expectedSize)
Definition: store_rebuild.cc:275