|
Squid Web Cache v8/master
|
Public Member Functions | |
| UFSCleanLog (SwapDir *aSwapDir) | |
| const StoreEntry * | nextEntry () override |
| Get the next entry that is a candidate for clean log writing. | |
| void | write (StoreEntry const &) override |
| "write" an entry to the clean log file. | |
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 |
Definition at line 43 of file UFSSwapDir.cc.
|
inline |
Definition at line 47 of file UFSSwapDir.cc.
|
overridevirtual |
Implements Store::Disk::CleanLog.
Definition at line 66 of file UFSSwapDir.cc.
References RemovalPolicyWalker::Next, and walker.
|
overridevirtual |
Implements Store::Disk::CleanLog.
Definition at line 77 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().
| SBuf UFSCleanLog::cln |
Definition at line 57 of file UFSSwapDir.cc.
Referenced by Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
| SBuf UFSCleanLog::cur |
Definition at line 55 of file UFSSwapDir.cc.
Referenced by Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
| int UFSCleanLog::fd = -1 |
Definition at line 60 of file UFSSwapDir.cc.
Referenced by write(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
| SBuf UFSCleanLog::newLog |
Definition at line 56 of file UFSSwapDir.cc.
Referenced by write(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
| char* UFSCleanLog::outbuf = nullptr |
Definition at line 58 of file UFSSwapDir.cc.
Referenced by write(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
| off_t UFSCleanLog::outbuf_offset = 0 |
Definition at line 59 of file UFSSwapDir.cc.
Referenced by write(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
| SwapDir* UFSCleanLog::sd = nullptr |
Definition at line 62 of file UFSSwapDir.cc.
Referenced by write().
| RemovalPolicyWalker* UFSCleanLog::walker = nullptr |
Definition at line 61 of file UFSSwapDir.cc.
Referenced by nextEntry(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().