|
Squid Web Cache master
|
smart StoreEntry-level info pointer (hides anti-padding LoadingParts arrays) More...
Public Types | |
| enum | State { leEmpty = 0 , leLoading , leLoaded , leCorrupted , leIgnored } |
| possible store entry states during index rebuild More... | |
Public Member Functions | |
| LoadingEntry (const sfileno fileNo, LoadingParts &source) | |
| State | state () const |
| void | state (State aState) const |
| bool | anchored () const |
| void | anchored (const bool beAnchored) |
Public Attributes | |
| uint64_t & | size |
| payload seen so far | |
| uint32_t & | version |
| DbCellHeader::version to distinguish same-URL chains. | |
Private Attributes | |
| LoadingFlags & | flags |
| entry flags (see the above accessors) are ours | |
Definition at line 111 of file RockRebuild.cc.
| Enumerator | |
|---|---|
| leEmpty | |
| leLoading | |
| leLoaded | |
| leCorrupted | |
| leIgnored | |
Definition at line 120 of file RockRebuild.cc.
| Rock::LoadingEntry::LoadingEntry | ( | const sfileno | fileNo, |
| LoadingParts & | source | ||
| ) |
Definition at line 200 of file RockRebuild.cc.
|
inline |
Definition at line 127 of file RockRebuild.cc.
References Rock::LoadingFlags::anchored, and flags.
Referenced by Rock::Rebuild::addSlotToEntry().
|
inline |
Definition at line 128 of file RockRebuild.cc.
References Rock::LoadingFlags::anchored, and flags.
|
inline |
Definition at line 123 of file RockRebuild.cc.
References flags, and Rock::LoadingFlags::state.
Referenced by Rock::Rebuild::finalizeOrThrow(), Rock::Rebuild::freeBadEntry(), Rock::Rebuild::primeNewEntry(), Rock::Rebuild::startNewEntry(), Rock::Rebuild::useNewSlot(), and Rock::Rebuild::validateOneEntry().
|
inline |
Definition at line 124 of file RockRebuild.cc.
References flags, and Rock::LoadingFlags::state.
|
private |
Definition at line 131 of file RockRebuild.cc.
Referenced by anchored(), anchored(), state(), and state().
| uint64_t& Rock::LoadingEntry::size |
Definition at line 116 of file RockRebuild.cc.
Referenced by Rock::Rebuild::addSlotToEntry(), Rock::Rebuild::finalizeOrThrow(), Rock::Rebuild::freeBadEntry(), and Rock::Rebuild::primeNewEntry().
| uint32_t& Rock::LoadingEntry::version |
Definition at line 117 of file RockRebuild.cc.
Referenced by Rock::Rebuild::primeNewEntry().