RockIoState.cc
Go to the documentation of this file.
150 Rock::IoState::handleReadCompletion(Rock::ReadRequest &request, const int rlen, const int errFlag)
160 debugs(79, 5, '#' << request.id << " read " << rlen << " bytes at " << offset_ << " for " << *e);
414 StoreIOStateCb(StoreIOState::STIOCB *cb, void *data, int err, const Rock::IoState::Pointer &anSio):
void STRCB(void *their_data, const char *buf, ssize_t len, StoreIOState::Pointer self)
Definition: StoreIOState.h:29
Definition: RockIoRequests.h:22
StoreIOStateCb(StoreIOState::STIOCB *cb, void *data, int err, const Rock::IoState::Pointer &anSio)
Definition: RockIoState.cc:414
Definition: cbdata.cc:37
Definition: StoreMap.h:28
int store_open_disk_fd
void callReaderBack(const char *buf, int rlen)
report (already sanitized/checked) I/O results to the read initiator
Definition: RockIoState.cc:167
RefCount< AsyncCallT< Dialer > > asyncCall(int aDebugSection, int aDebugLevel, const char *aName, const Dialer &aDialer)
Definition: AsyncCall.h:156
StoreIOStateCb(const StoreIOStateCb &cb)
Definition: RockIoState.cc:424
IoXactionId id
identifies this read transaction for the requesting IoState
Definition: RockIoRequests.h:31
Definition: StoreMap.h:56
SlotId sidPrevious
slot that will point to sidCurrent in the cache_dir map
Definition: RockIoRequests.h:45
const Ipc::StoreMapSlice & currentReadableSlice() const
convenience wrapper returning the map slot we are reading now
Definition: RockIoState.cc:91
bool expectedReply(const IoXactionId receivedId)
Definition: RockIoState.cc:333
std::ostream & CurrentException(std::ostream &os)
prints active (i.e., thrown but not yet handled) exception
Definition: TextException.cc:88
Definition: StoreIOState.h:17
void read_(char *buf, size_t size, off_t offset, STRCB *callback, void *callback_data) override
Definition: RockIoState.cc:97
void finishedWriting(const int errFlag)
called by SwapDir::writeCompleted() after the last write and on error
Definition: RockIoState.cc:349
uint64_t IoXactionId
unique (within a given IoState object scope) I/O transaction identifier
Definition: forward.h:36
Definition: forward.h:15
Definition: RockIoRequests.h:34
void handleReadCompletion(Rock::ReadRequest &request, const int rlen, const int errFlag)
forwards read data (or an error) to the reader that initiated this I/O
Definition: RockIoState.cc:150
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
Definition: Store.h:37
IoState(Rock::SwapDir::Pointer &, StoreEntry *, StoreIOState::STIOCB *, void *cbData)
Definition: RockIoState.cc:25
Definition: AsyncCall.h:106
bool write(char const *buf, size_t size, off_t offset, FREE *free_func) override
wraps tryWrite() to handle deep write failures centrally and safely
Definition: RockIoState.cc:184
const Ipc::StoreMapAnchor & readAnchor() const
Definition: RockIoState.cc:76
size_t writeToBuffer(char const *buf, size_t size)
Definition: RockIoState.cc:247
Definition: RockIoState.cc:411
static void Broadcast(const StoreEntry &e, const bool includingThisWorker=false)
notify other workers about changes in entry state (e.g., new data)
Definition: CollapsedForwarding.cc:70
Definition: AsyncCall.h:40
void tryWrite(char const *buf, size_t size, off_t offset)
Definition: RockIoState.cc:212
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