desc_store_t Struct Reference

#include <or.h>


Data Fields

const char * fname_base
const char * fname_alt_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.

Field Documentation

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().

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().

Human-readable description of what this store contains.

Referenced by router_get_routerlist(), and router_rebuild_store().

What's stored in this store?

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

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().

The size of the router store, in bytes.

Referenced by router_reload_router_list_impl(), and router_should_rebuild_store().

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().


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

Generated on Tue May 25 00:31:10 2010 for tor by  doxygen 1.5.6