store_rebuild.cc File Reference
#include "squid.h"
#include "event.h"
#include "globals.h"
#include "md5.h"
#include "SquidConfig.h"
#include "SquidTime.h"
#include "StatCounters.h"
#include "Store.h"
#include "store/Disk.h"
#include "store_digest.h"
#include "store_key_md5.h"
#include "store_rebuild.h"
#include "StoreSearch.h"
#include "util.h"
#include <cerrno>
#include "fde.h"
#include "Generic.h"
#include "StoreMeta.h"
#include "StoreMetaUnpacker.h"
Include dependency graph for store_rebuild.cc:

Go to the source code of this file.

Classes

struct  store_rebuild_progress
 
struct  InitStoreEntry
 

Functions

static void storeCleanup (void *)
 
static int storeCleanupDoubleCheck (StoreEntry *e)
 
void storeRebuildComplete (StoreRebuildData *dc)
 
void storeRebuildStart (void)
 
void storeRebuildProgress (int sd_index, int total, int sofar)
 
bool storeRebuildLoadEntry (int fd, int diskIndex, MemBuf &buf, StoreRebuildData &)
 loads entry from disk; fills supplied memory buffer on success More...
 
bool storeRebuildParseEntry (MemBuf &buf, StoreEntry &tmpe, cache_key *key, StoreRebuildData &stats, uint64_t expectedSize)
 parses entry buffer and validates entry metadata; fills e on success More...
 
bool storeRebuildKeepEntry (const StoreEntry &tmpe, const cache_key *key, StoreRebuildData &stats)
 checks whether the loaded entry should be kept; updates counters More...
 

Variables

static StoreRebuildData counts
 
static struct timeval rebuild_start
 
static store_rebuild_progressRebuildProgress = NULL
 

Function Documentation

static int storeCleanupDoubleCheck ( StoreEntry e)
static

Definition at line 44 of file store_rebuild.cc.

References Store::Disk::doubleCheck(), INDEXSD, and StoreEntry::swap_dirn.

Referenced by storeCleanup().

bool storeRebuildKeepEntry ( const StoreEntry tmpe,
const cache_key key,
StoreRebuildData stats 
)
bool storeRebuildLoadEntry ( int  fd,
int  diskIndex,
MemBuf buf,
StoreRebuildData  
)
void storeRebuildStart ( void  )

Variable Documentation

struct timeval rebuild_start
static

Definition at line 31 of file store_rebuild.cc.

Referenced by storeRebuildComplete(), and storeRebuildStart().

store_rebuild_progress* RebuildProgress = NULL
static

Definition at line 41 of file store_rebuild.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors