store_rebuild.h File Reference
#include "store_key_md5.h"
Include dependency graph for store_rebuild.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  StoreRebuildData
 cache_dir(s) indexing statistics More...
class  Progress
 advancement of work that consists of (usually known number) of similar steps More...


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)

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const Progress p 

Definition at line 59 of file store_rebuild.h.

References Progress::print().

◆ storeRebuildComplete()

◆ storeRebuildLoadEntry()

◆ storeRebuildParseEntry()

bool storeRebuildParseEntry ( MemBuf buf,
StoreEntry e,
cache_key key,
StoreRebuildData counts,
uint64_t  expectedSize 

Parses the given Store entry metadata, filling e and key. Optimization: Both e and key parameters may be updated even on failures.

bufmemory containing serialized Store entry swap metadata (at least)
ecaller's temporary StoreEntry object for returning parsed metadata
keycaller's temporary Store entry key buffer; usable to set e.key
expectedSizeeither total entry size (including swap metadata) or 0
Return values
truesuccess; e/key filled with parsed metadata
falsefailure; e/key ought to be ignored (may be filled/dirty)

Definition at line 275 of file

References CurrentException(), DBG_IMPORTANT, debugs, EBIT_TEST, StoreEntry::flags, Important, hash_link::key, KEY_PRIVATE, Ping::stats, StoreEntry::swap_file_sz, and Store::UnpackIndexSwapMeta().

Referenced by Rock::Rebuild::importEntry(), and Fs::Ufs::RebuildState::rebuildFromDirectory().

◆ storeRebuildProgress()

◆ storeRebuildStart()

void storeRebuildStart ( void  )






Web Site Translations