#include <or.h>
Data Fields | |
const char * | fname_base |
const char * | fname_alt_base |
const char * | description |
tor_mmap_t * | mmap |
store_type_t | type |
size_t | journal_len |
size_t | store_len |
size_t | bytes_dropped |
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.
Referenced by router_get_routerlist(), router_rebuild_store(), router_reload_router_list_impl(), and signed_desc_append_to_journal().
const char* desc_store_t::fname_alt_base |
Alternative (obsolete) value for fname_base: if the file named by fname_base isn't present, we read from here instead, but we never write here.
Referenced by router_get_routerlist(), and router_reload_router_list_impl().
const char* desc_store_t::description |
Human-readable description of what this store contains.
Referenced by router_get_routerlist(), and router_rebuild_store().
A mmap for the main file in the store.
Referenced by router_rebuild_store(), router_reload_router_list_impl(), routerlist_free(), and signed_descriptor_get_body_impl().
What's stored in this store?
Referenced by router_get_routerlist(), router_rebuild_store(), and router_reload_router_list_impl().
size_t desc_store_t::journal_len |
The size of the router log, in bytes.
Referenced by router_reload_router_list_impl(), router_should_rebuild_store(), and signed_desc_append_to_journal().
size_t desc_store_t::store_len |
The size of the router store, in bytes.
Referenced by router_reload_router_list_impl(), and router_should_rebuild_store().
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.
Referenced by extrainfo_insert(), router_should_rebuild_store(), routerlist_remove(), routerlist_remove_old(), and routerlist_replace().