RockSwapDir.h
Go to the documentation of this file.
128 StoreIOState::Pointer createUpdateIO(const Ipc::StoreMapUpdate &, StoreIOState::STIOCB *, void *);
int64_t diskOffset(Ipc::Mem::PageId &pageId) const
Definition: RockSwapDir.cc:683
std::vector< Ipc::Mem::Owner< Ipc::Mem::PageStack > * > freeSlotsOwners
Definition: RockSwapDir.h:168
StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *) override
Definition: RockSwapDir.cc:752
void updateHeaders(StoreEntry *e) override
make stored metadata and HTTP headers the same as in the given entry
Definition: RockSwapDir.cc:942
Definition: forward.h:27
void ioCompletedNotification() override
Definition: RockSwapDir.cc:809
std::vector< SwapDir::DirMap::Owner * > mapOwners
Definition: RockSwapDir.h:167
Definition: RockRebuild.h:30
bool hasReadableEntry(const StoreEntry &) const override
whether this cache dir has an entry with e.key
Definition: RockSwapDir.cc:1111
uint64_t currentCount() const override
the total number of objects stored right now
Definition: RockSwapDir.cc:155
void anchorEntry(StoreEntry &e, const sfileno filen, const Ipc::StoreMapAnchor &anchor)
Definition: RockSwapDir.cc:105
void create() override
called when the runner should create a new memory segment
Definition: RockSwapDir.cc:1118
Definition: Segment.h:84
Definition: RockIoState.h:25
Definition: RockHeaderUpdater.h:26
void parseSize(const bool reconfiguring)
parses anonymous cache_dir size option
Definition: RockSwapDir.cc:351
std::vector< Ipc::Mem::Owner< Rebuild::Stats > * > rebuildStatsOwners
Definition: RockSwapDir.h:166
Definition: WriteRequest.h:16
bool unlinkdUseful() const override
whether SwapDir may benefit from unlinkd
Definition: RockSwapDir.cc:1004
void create() override
create system resources needed for this store to operate in the future
Definition: RockSwapDir.cc:210
void maintain() override
purge while full(); it should be sufficient to purge just one
Definition: RockSwapDir.cc:976
void handleWriteCompletionProblem(const int errflag, const WriteRequest &request)
code shared by writeCompleted() error handling cases
Definition: RockSwapDir.cc:916
void dumpTimeOption(StoreEntry *e) const
reports time-specific options; mimics SwapDir::optionObjectSizeDump()
Definition: RockSwapDir.cc:434
Definition: ReadRequest.h:15
bool parseSizeOption(char const *option, const char *value, int reconfiguring)
parses size-specific options; mimics SwapDir::optionObjectSizeParse()
Definition: RockSwapDir.cc:493
Definition: ConfigOption.h:57
void reference(StoreEntry &e) override
somebody needs this entry (many cache replacement policies need to know)
Definition: RockSwapDir.cc:985
void noteFreeMapSlice(const Ipc::StoreMapSliceId fileno) override
adjust slice-linked state before a locked Readable slice is erased
Definition: RockSwapDir.cc:737
ConfigOption * getOptionTree() const override
Definition: RockSwapDir.cc:368
Definition: StoreMap.h:56
void purgeSome()
purges one or more entries to make full() false and free some slots
API for adjusting external state when dirty map slice is being freed.
Definition: StoreMap.h:397
Definition: StoreMap.h:218
int reconfiguring
bool smpAware() const override
whether this disk storage is capable of serving multiple workers
Definition: RockSwapDir.h:54
void handleWriteCompletionSuccess(const WriteRequest &request)
code shared by writeCompleted() success handling cases
Definition: RockSwapDir.cc:877
StoreIOState::Pointer createUpdateIO(const Ipc::StoreMapUpdate &, StoreIOState::STIOCB *, void *)
Definition: RockSwapDir.cc:650
Aggregates information required for updating entry metadata and headers.
Definition: StoreMap.h:181
bool canStore(const StoreEntry &e, int64_t diskSpaceNeeded, int &load) const override
check whether we can store the entry; if we can, report current load
Definition: RockSwapDir.cc:582
Definition: StoreIOState.h:17
SlotId reserveSlotForWriting()
finds and returns a free db slot to fill or throws
Definition: RockSwapDir.cc:697
void disconnect(StoreEntry &e) override
called when the entry is about to forget its association with cache_dir
Definition: RockSwapDir.cc:119
void finalizeSwapoutFailure(StoreEntry &) override
abort the failed swapout that has been already noticed by Store
Definition: RockSwapDir.cc:178
bool updateAnchored(StoreEntry &) override
Definition: RockSwapDir.cc:92
Definition: forward.h:15
Definition: RockIoRequests.h:34
initializes shared memory segments used by Rock::SwapDir
Definition: RockSwapDir.h:155
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
Definition: Store.h:37
bool validSlotId(const SlotId slotId) const
whether the given slot ID may point to a slot in this db
Definition: RockSwapDir.cc:731
generally useful configuration options supported by some children
Definition: DiskFile.h:27
sfileno SlotId
db cell number, starting with cell 0 (always occupied by the db header)
Definition: forward.h:30
Definition: RockSwapDir.h:32
void evictIfFound(const cache_key *) override
Definition: RockSwapDir.cc:1011
bool parseRateOption(char const *option, const char *value, int reconfiguring)
parses rate-specific options; mimics SwapDir::optionObjectSizeParse()
Definition: RockSwapDir.cc:443
void finalizeSwapoutSuccess(const StoreEntry &) override
finalize the successful swapout that has been already noticed by Store
Definition: RockSwapDir.cc:169
void writeCompleted(int errflag, size_t len, RefCount< ::WriteRequest >) override
Definition: RockSwapDir.cc:845
Definition: IORequestor.h:18
Definition: DiskIOStrategy.h:19
void dumpRateOption(StoreEntry *e) const
reports rate-specific options; mimics SwapDir::optionObjectSizeDump()
Definition: RockSwapDir.cc:485
void updateHeadersOrThrow(Ipc::StoreMapUpdate &update)
StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *) override
Definition: RockSwapDir.cc:611
void readCompleted(const char *buf, int len, int errflag, RefCount< ::ReadRequest >) override
Definition: RockSwapDir.cc:836
void dumpSizeOption(StoreEntry *e) const
reports size-specific options; mimics SwapDir::optionObjectSizeDump()
Definition: RockSwapDir.cc:533
bool parseTimeOption(char const *option, const char *value, int reconfiguring)
parses time-specific options; mimics SwapDir::optionObjectSizeParse()
Definition: RockSwapDir.cc:395
bool allowOptionReconfigure(const char *const option) const override
Definition: RockSwapDir.cc:387
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