RockRebuild.h
Go to the documentation of this file.
91 void primeNewEntry(Ipc::StoreMapAnchor &anchor, const sfileno fileno, const DbCellHeader &header);
Definition: AsyncJob.h:31
CBDATA_CHILD(Rebuild)
A RegisteredRunner with lifetime determined by forces outside the Registry.
Definition: RunnersRegistry.h:106
void startNewEntry(const sfileno fileno, const SlotId slotId, const DbCellHeader &header)
handle a slot from an entry that we have not seen before
Definition: RockRebuild.cc:858
LoadingSlot loadingSlot(const SlotId slotId)
Definition: RockRebuild.cc:461
smart db slot-level info pointer (hides anti-padding LoadingParts arrays)
Definition: RockRebuild.cc:134
Definition: forward.h:27
smart StoreEntry-level info pointer (hides anti-padding LoadingParts arrays)
Definition: RockRebuild.cc:110
bool importEntry(Ipc::StoreMapAnchor &anchor, const sfileno slotId, const DbCellHeader &header)
parse StoreEntry basics and add them to the map, returning true on success
Definition: RockRebuild.cc:531
Definition: RockRebuild.h:30
Rebuild(SwapDir *dir, const Ipc::Mem::Pointer< Stats > &)
Definition: RockRebuild.cc:299
void chainSlots(SlotIdType &from, const SlotId to)
Definition: RockRebuild.cc:771
bool sameEntry(const sfileno fileno, const DbCellHeader &header) const
does the header belong to the fileno entry being loaded?
Definition: RockRebuild.cc:878
LoadingEntry loadingEntry(const sfileno fileNo)
Definition: RockRebuild.cc:454
void primeNewEntry(Ipc::StoreMapAnchor &anchor, const sfileno fileno, const DbCellHeader &header)
initialize housekeeping information for a newly accepted entry
Definition: RockRebuild.cc:842
void freeBadEntry(const sfileno fileno, const char *eDescription)
Definition: RockRebuild.cc:671
void freeUnusedSlot(const SlotId slotId, const bool invalid)
freeSlot() for never-been-mapped slots
Definition: RockRebuild.cc:746
void finalizeOrThrow(const sfileno fileNo, LoadingEntry &le)
Definition: RockRebuild.cc:599
void failure(const char *msg, int errNo=0)
a helper to handle rebuild-killing I/O errors
Definition: RockRebuild.cc:708
Definition: StoreMap.h:56
Definition: MemBuf.h:23
void addSlotToEntry(const sfileno fileno, const SlotId slotId, const DbCellHeader &header)
Definition: RockRebuild.cc:782
Definition: Pointer.h:25
static Ipc::Mem::Owner< Stats > * Init(const SwapDir &)
Definition: RockRebuild.cc:258
bool completed(const SwapDir &) const
whether the rebuild is finished already
Definition: RockRebuild.cc:264
void validateOneSlot(const SlotId slotId)
Definition: RockRebuild.cc:661
void useNewSlot(const SlotId slotId, const DbCellHeader &header)
handle freshly loaded (and validated) db slot header
Definition: RockRebuild.cc:888
static bool IsResponsible(const SwapDir &)
whether the current kid is responsible for rebuilding the given cache_dir
Definition: RockRebuild.cc:273
virtual void callException(const std::exception &) override
called when the job throws during an async call
Definition: RockRebuild.cc:699
Definition: Pointer.h:57
void validateOneEntry(const sfileno fileNo)
Definition: RockRebuild.cc:643
sfileno SlotId
db cell number, starting with cell 0 (always occupied by the db header)
Definition: forward.h:30
Definition: RockRebuild.cc:162
Definition: RockSwapDir.h:32
void freeSlot(const SlotId slotId, const bool invalid)
adds slot to the free slot index
Definition: RockRebuild.cc:726
void mapSlot(const SlotId slotId, const DbCellHeader &header)
adds slot to the entry chain in the map
Definition: RockRebuild.cc:756
cache_dir indexing statistics shared across same-kid process restarts
Definition: RockRebuild.h:36
void finalizeOrFree(const sfileno fileNo, LoadingEntry &le)
Definition: RockRebuild.cc:633
Definition: RockDbCell.h:22
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products