Tor
0.4.7.0-alpha-dev
|
#include <desc_store_st.h>
Data Fields | |
const char * | fname_base |
const char * | description |
tor_mmap_t * | mmap |
store_type_t | type |
size_t | journal_len |
size_t | store_len |
size_t | bytes_dropped |
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.
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().
const char* description |
Human-readable description of what this store contains.
Definition at line 29 of file desc_store_st.h.
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.
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().
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().
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().
store_type_t type |
What's stored in this store?
Definition at line 33 of file desc_store_st.h.
Referenced by router_reload_router_list_impl().