Tor 0.5.0.0-alpha-dev
Loading...
Searching...
No Matches
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 extrainfo_insert(), router_rebuild_store(), router_should_rebuild_store(), routerlist_insert(), routerlist_remove(), routerlist_remove_old(), and routerlist_replace().

◆ description

const char* description

Human-readable description of what this store contains.

Definition at line 29 of file desc_store_st.h.

Referenced by router_get_routerlist(), and router_rebuild_store().

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

Referenced by router_get_routerlist(), router_rebuild_store(), router_reload_router_list_impl(), and signed_desc_append_to_journal().

◆ 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_rebuild_store(), router_reload_router_list_impl(), router_should_rebuild_store(), and signed_desc_append_to_journal().

◆ 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 router_rebuild_store(), router_reload_router_list_impl(), routerlist_free_(), and 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_rebuild_store(), router_reload_router_list_impl(), and router_should_rebuild_store().

◆ type

What's stored in this store?

Definition at line 33 of file desc_store_st.h.

Referenced by router_get_routerlist(), router_rebuild_store(), and router_reload_router_list_impl().


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