RockIoState.h
Go to the documentation of this file.
38 void read_(char *buf, size_t size, off_t offset, STRCB * callback, void *callback_data) override;
Definition: DiskFile.h:22
Definition: StoreMap.h:57
Definition: StoreMap.h:29
Definition: MemBlob.h:46
Definition: RockIoState.h:26
uint64_t repliesReceived
the number of successful responses we received from theFile
Definition: RockIoState.h:101
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:185
const Ipc::StoreMapSlice & currentReadableSlice() const
convenience wrapper returning the map slot we are reading now
Definition: RockIoState.cc:92
const Ipc::StoreMapAnchor & readAnchor() const
Definition: RockIoState.cc:77
MEMPROXY_CLASS(IoState)
bool expectedReply(const IoXactionId receivedId)
Definition: RockIoState.cc:334
void read_(char *buf, size_t size, off_t offset, STRCB *callback, void *callback_data) override
Definition: RockIoState.cc:98
size_t writeToBuffer(char const *buf, size_t size)
Definition: RockIoState.cc:248
void callReaderBack(const char *buf, int rlen)
report (already sanitized/checked) I/O results to the read initiator
Definition: RockIoState.cc:168
void finishedWriting(const int errFlag)
called by SwapDir::writeCompleted() after the last write and on error
Definition: RockIoState.cc:350
void tryWrite(char const *buf, size_t size, off_t offset)
Definition: RockIoState.cc:213
IoState(Rock::SwapDir::Pointer &, StoreEntry *, StoreIOState::STIOCB *, void *cbData)
Definition: RockIoState.cc:25
bool stillWaiting() const
whether we are still waiting for the I/O results (i.e., not closed)
Definition: RockIoState.h:43
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:151
uint64_t requestsSent
the number of read or write requests we sent to theFile
Definition: RockIoState.h:98
Definition: RockIoRequests.h:23
Definition: Store.h:42
Definition: StoreIOState.h:18
void STRCB(void *their_data, const char *buf, ssize_t len, StoreIOState::Pointer self)
Definition: StoreIOState.h:29
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
Definition: forward.h:28
uint64_t IoXactionId
unique (within a given IoState object scope) I/O transaction identifier
Definition: forward.h:36
sfileno SlotId
db cell number, starting with cell 0 (always occupied by the db header)
Definition: forward.h:33