diff options
author | Matthew Finkel <Matthew.Finkel@gmail.com> | 2015-02-08 06:51:51 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-12-18 13:14:09 -0500 |
commit | 997f779a7f05540e5f564b4d121706c4a7069fb2 (patch) | |
tree | 178b3ebdea0f52d9bb0a67a632bd70b20d852f33 /src/or/config.h | |
parent | e0bd6cdef25d7cdcff18d2bce7865aa7acc1f2b8 (diff) | |
download | tor-997f779a7f05540e5f564b4d121706c4a7069fb2.tar.gz tor-997f779a7f05540e5f564b4d121706c4a7069fb2.zip |
Add new DirCache configuration option
This will give relay operators the ability of disabling the caching of
directory data. In general, this should not be necessary, but on some
lower-resource systems it may beneficial.
Diffstat (limited to 'src/or/config.h')
-rw-r--r-- | src/or/config.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h index bfdd1694eb..6e08f9d178 100644 --- a/src/or/config.h +++ b/src/or/config.h @@ -158,6 +158,8 @@ STATIC int parse_dir_authority_line(const char *line, dirinfo_type_t required_type, int validate_only); STATIC int parse_dir_fallback_line(const char *line, int validate_only); +STATIC int have_enough_mem_for_dircache(const or_options_t *options, + size_t total_mem, char **msg); #endif #endif |