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 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
 

Variables

void Controller::create() STUB void Controller Controller Store::nil
 

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 136 of file stub_libstore.cc.

References assert, debugs, EBIT_TEST, ENTRY_SPECIAL, StoreEntry::flags, StoreEntry::getMD5Text(), StoreEntry::hasDisk(), INDEXSD, KEY_PRIVATE, 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

Web Site Translations

Mirrors