Tor  0.4.7.0-alpha-dev
Data Fields
desc_store_t Struct Reference

#include <desc_store_st.h>

Data Fields

const char * fname_base
 
const char * description
 
tor_mmap_tmmap
 
store_type_t type
 
size_t journal_len
 
size_t store_len
 
size_t bytes_dropped
 

Detailed Description

A 'store' is a set of descriptors saved on disk, with accompanying journal, mmaped as needed, rebuilt as needed.

Definition at line 23 of file desc_store_st.h.

Field Documentation

◆ bytes_dropped

size_t bytes_dropped

Total bytes dropped since last rebuild: this is space currently used in the cache and the journal that could be freed by a rebuild.

Definition at line 41 of file desc_store_st.h.

Referenced by router_should_rebuild_store().

◆ description

const char* description

Human-readable description of what this store contains.

Definition at line 29 of file desc_store_st.h.

◆ fname_base

const char* fname_base

Filename (within DataDir) for the store. We append .tmp to this filename for a temporary file when rebuilding the store, and .new to this filename for the journal.

Definition at line 27 of file desc_store_st.h.

◆ journal_len

size_t journal_len

The size of the router log, in bytes.

Definition at line 36 of file desc_store_st.h.

Referenced by router_should_rebuild_store().

◆ mmap

tor_mmap_t* mmap

A mmap for the main file in the store.

Definition at line 31 of file desc_store_st.h.

Referenced by signed_descriptor_get_body_impl().

◆ store_len

size_t store_len

The size of the router store, in bytes.

Definition at line 38 of file desc_store_st.h.

Referenced by router_should_rebuild_store().

◆ type

What's stored in this store?

Definition at line 33 of file desc_store_st.h.

Referenced by router_reload_router_list_impl().


The documentation for this struct was generated from the following file: