RockRebuild.cc File Reference
#include "squid.h"
#include "base/AsyncJobCalls.h"
#include "debug/Messages.h"
#include "fs/rock/RockDbCell.h"
#include "fs/rock/RockRebuild.h"
#include "fs/rock/RockSwapDir.h"
#include "fs_io.h"
#include "globals.h"
#include "md5.h"
#include "sbuf/Stream.h"
#include "Store.h"
#include "tools.h"
#include <array>
#include <cerrno>
#include <cstring>
Include dependency graph for RockRebuild.cc:

Go to the source code of this file.

Classes

class  Rock::LoadingFlags
 low-level anti-padding storage class for LoadingEntry and LoadingSlot flags More...
 
class  Rock::LoadingEntry
 smart StoreEntry-level info pointer (hides anti-padding LoadingParts arrays) More...
 
class  Rock::LoadingSlot
 smart db slot-level info pointer (hides anti-padding LoadingParts arrays) More...
 
class  Rock::LoadingParts
 

Namespaces

namespace  Rock
 

Functions

 CBDATA_NAMESPACED_CLASS_INIT (Rock, Rebuild)
 
static bool Rock::DoneLoading (const int64_t loadingPos, const int64_t dbSlotLimit)
 
static bool Rock::DoneValidating (const int64_t validationPos, const int64_t dbSlotLimit, const int64_t dbEntryLimit)
 
template<class T >
T::Owner * createOwner (const char *dirPath, const char *sfx, const int64_t limit, const bool resuming)
 
static bool ZeroedSlot (const MemBuf &buf)
 

Function Documentation

◆ CBDATA_NAMESPACED_CLASS_INIT()

CBDATA_NAMESPACED_CLASS_INIT ( Rock  ,
Rebuild   
)

◆ createOwner()

template<class T >
T::Owner * createOwner ( const char *  dirPath,
const char *  sfx,
const int64_t  limit,
const bool  resuming 
)
inline

◆ ZeroedSlot()

static bool ZeroedSlot ( const MemBuf buf)
static

whether the given slot buffer is likely to have nothing but zeros, as is common to slots in pre-initialized (with zeros) db files

Definition at line 515 of file RockRebuild.cc.

References MemBuf::content(), and MemBuf::contentSize().

Referenced by Rock::Rebuild::importEntry().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors