stub_libstore.cc File Reference
#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"
Include dependency graph for stub_libstore.cc:

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.

  1. 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.
  2. 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

Documentation

Support

Miscellaneous