|
Squid Web Cache master
|
#include <RockDbCell.h>
Public Member Functions | |
| DbCellHeader () | |
| bool | empty () const |
| true iff no entry occupies this slot | |
| bool | sane (const size_t slotSize, int slotLimit) const |
| whether this slot is not corrupted | |
Public Attributes | |
| uint64_t | key [2] |
| StoreEntry key. | |
| uint64_t | entrySize |
| total entry content size or zero if still unknown | |
| uint32_t | payloadSize |
| slot contents size, always positive | |
| uint32_t | version |
| detects conflicts among same-key entries | |
| sfileno | firstSlot |
| slot ID of the first slot occupied by the entry | |
| sfileno | nextSlot |
| slot ID of the next slot occupied by the entry | |
Meta-information at the beginning of every db cell. Links multiple map slots belonging to the same entry into an entry chain. Stored on disk and used as sizeof() argument so it must remain POD.
Definition at line 22 of file RockDbCell.h.
| Rock::DbCellHeader::DbCellHeader | ( | ) |
Definition at line 14 of file RockDbCell.cc.
Referenced by sane().
|
inline |
Definition at line 28 of file RockDbCell.h.
References firstSlot, nextSlot, and payloadSize.
Referenced by Rock::Rebuild::loadOneSlot().
Definition at line 33 of file RockDbCell.h.
References DbCellHeader(), firstSlot, nextSlot, payloadSize, and version.
Referenced by Rock::Rebuild::loadOneSlot().
| uint64_t Rock::DbCellHeader::entrySize |
Definition at line 42 of file RockDbCell.h.
Referenced by Rock::Rebuild::addSlotToEntry(), Rock::Rebuild::importEntry(), and Rock::IoState::writeToDisk().
| sfileno Rock::DbCellHeader::firstSlot |
Definition at line 45 of file RockDbCell.h.
Referenced by Rock::Rebuild::addSlotToEntry(), empty(), Rock::Rebuild::primeNewEntry(), sane(), Rock::Rebuild::useNewSlot(), and Rock::IoState::writeToDisk().
| uint64_t Rock::DbCellHeader::key[2] |
Definition at line 41 of file RockDbCell.h.
Referenced by Rock::Rebuild::primeNewEntry(), Rock::Rebuild::sameEntry(), Rock::Rebuild::useNewSlot(), and Rock::IoState::writeToDisk().
| sfileno Rock::DbCellHeader::nextSlot |
Definition at line 46 of file RockDbCell.h.
Referenced by empty(), Rock::Rebuild::mapSlot(), sane(), and Rock::IoState::writeToDisk().
| uint32_t Rock::DbCellHeader::payloadSize |
Definition at line 43 of file RockDbCell.h.
Referenced by Rock::Rebuild::addSlotToEntry(), empty(), Rock::Rebuild::mapSlot(), sane(), Rock::Rebuild::useNewSlot(), and Rock::IoState::writeToDisk().
| uint32_t Rock::DbCellHeader::version |
Definition at line 44 of file RockDbCell.h.
Referenced by Rock::Rebuild::primeNewEntry(), sane(), and Rock::IoState::writeToDisk().