#include "squid.h"
#include "tests/STUB.h"
#include "store/Controller.h"
#include "store/Disk.h"
#include "store/Disks.h"
#include "store/LocalSearch.h"
#include "store/SwapMetaIn.h"
#include "store/SwapMetaOut.h"
![](stub__libstore_8cc__incl.png)
Go to the source code of this file.
Namespaces | |
Store | |
Macros | |
#define | STUB_API "store/libstore.la" |
Functions | |
void storeDirOpenSwapLogs(void) STUB int storeDirWriteCleanLogs(int) STUB_RETVAL(0) void storeDirCloseSwapLogs(void) STUB void allocate_new_swapdir(Store void | storeDirSwapLog (const StoreEntry *, int) STUB namespace Store |
Macro Definition Documentation
◆ STUB_API
#define STUB_API "store/libstore.la" |
Definition at line 11 of file stub_libstore.cc.
Function Documentation
◆ storeDirSwapLog()
void storeDirOpenSwapLogs (void) STUB int storeDirWriteCleanLogs(int) STUB_RETVAL(0) void storeDirCloseSwapLogs(void) STUB void allocate_new_swapdir(Store void storeDirSwapLog | ( | const StoreEntry * | , |
int | |||
) |
An entry written to the swap log MUST have the following properties.
- It MUST be a public key. It does no good to log a public ADD, change the key, then log a private DEL. So we need to log a DEL before we change a key from public to private.
- It MUST have a valid (> -1) swap_filen.
Definition at line 133 of file stub_libstore.cc.
References asHex(), assert, debugs, StoreEntry::disk(), EBIT_TEST, ENTRY_SPECIAL, StoreEntry::flags, StoreEntry::getMD5Text(), StoreEntry::hasDisk(), KEY_PRIVATE, Store::Disk::logEntry(), Store::NewLocalSearch(), STUB_RETVAL, StoreEntry::swap_dirn, StoreEntry::swap_filen, SWAP_LOG_MAX, SWAP_LOG_NOP, and swap_log_op_str.
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