Public Member Functions | |
UFSCleanLog (SwapDir *aSwapDir) | |
const StoreEntry * | nextEntry () override |
Get the next entry that is a candidate for clean log writing. More... | |
void | write (StoreEntry const &) override |
"write" an entry to the clean log file. More... | |
Public Attributes | |
SBuf | cur |
SBuf | newLog |
SBuf | cln |
char * | outbuf = nullptr |
off_t | outbuf_offset = 0 |
int | fd = -1 |
RemovalPolicyWalker * | walker = nullptr |
SwapDir * | sd = nullptr |
Detailed Description
Definition at line 42 of file UFSSwapDir.cc.
Constructor & Destructor Documentation
◆ UFSCleanLog()
|
inline |
Definition at line 46 of file UFSSwapDir.cc.
Member Function Documentation
◆ nextEntry()
|
overridevirtual |
Implements Store::Disk::CleanLog.
Definition at line 65 of file UFSSwapDir.cc.
References RemovalPolicyWalker::Next, and walker.
◆ write()
|
overridevirtual |
Implements Store::Disk::CleanLog.
Definition at line 76 of file UFSSwapDir.cc.
References SBuf::c_str(), CLEAN_BUF_SZ, Store::Disk::cleanLog, DBG_CRITICAL, debugs, StoreEntry::expires, StoreSwapLogData::expires, fd, FD_WRITE_METHOD(), file_close(), StoreSwapLogData::finalize(), StoreEntry::flags, StoreSwapLogData::flags, hash_link::key, StoreSwapLogData::key, StoreSwapLogData::lastmod, StoreEntry::lastModified(), StoreEntry::lastref, StoreSwapLogData::lastref, MYNAME, newLog, StoreSwapLogData::op, outbuf, outbuf_offset, StoreEntry::refcount, StoreSwapLogData::refcount, sd, SQUID_MD5_DIGEST_LENGTH, StoreEntry::swap_file_sz, StoreSwapLogData::swap_file_sz, StoreEntry::swap_filen, StoreSwapLogData::swap_filen, SWAP_LOG_ADD, StoreEntry::timestamp, StoreSwapLogData::timestamp, and xstrerr().
Member Data Documentation
◆ cln
SBuf UFSCleanLog::cln |
Definition at line 56 of file UFSSwapDir.cc.
Referenced by Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ cur
SBuf UFSCleanLog::cur |
Definition at line 54 of file UFSSwapDir.cc.
Referenced by Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ fd
int UFSCleanLog::fd = -1 |
Definition at line 59 of file UFSSwapDir.cc.
Referenced by write(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ newLog
SBuf UFSCleanLog::newLog |
Definition at line 55 of file UFSSwapDir.cc.
Referenced by write(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ outbuf
char* UFSCleanLog::outbuf = nullptr |
Definition at line 57 of file UFSSwapDir.cc.
Referenced by write(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ outbuf_offset
off_t UFSCleanLog::outbuf_offset = 0 |
Definition at line 58 of file UFSSwapDir.cc.
Referenced by write(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ sd
SwapDir* UFSCleanLog::sd = nullptr |
Definition at line 61 of file UFSSwapDir.cc.
Referenced by write().
◆ walker
RemovalPolicyWalker* UFSCleanLog::walker = nullptr |
Definition at line 60 of file UFSSwapDir.cc.
Referenced by nextEntry(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
The documentation for this class was generated from the following file:
- src/fs/ufs/UFSSwapDir.cc