tor  0.4.2.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 18 of file desc_store_st.h.

Field Documentation

◆ bytes_dropped

size_t desc_store_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 36 of file desc_store_st.h.

Referenced by router_should_rebuild_store().

◆ description

const char* desc_store_t::description

Human-readable description of what this store contains.

Definition at line 24 of file desc_store_st.h.

◆ fname_base

const char* desc_store_t::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 22 of file desc_store_st.h.

◆ journal_len

size_t desc_store_t::journal_len

The size of the router log, in bytes.

Definition at line 31 of file desc_store_st.h.

Referenced by router_reload_router_list_impl(), and router_should_rebuild_store().

◆ mmap

tor_mmap_t* desc_store_t::mmap

A mmap for the main file in the store.

Definition at line 26 of file desc_store_st.h.

Referenced by signed_descriptor_get_body_impl().

◆ store_len

size_t desc_store_t::store_len

The size of the router store, in bytes.

Definition at line 33 of file desc_store_st.h.

Referenced by router_reload_router_list_impl(), and router_should_rebuild_store().

◆ type

store_type_t desc_store_t::type

What's stored in this store?

Definition at line 28 of file desc_store_st.h.

Referenced by router_reload_router_list_impl().


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