diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-11-18 19:09:08 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-18 19:09:08 -0500 |
commit | 53dac6df1802bc68fb399a9bd3389f952740f56d (patch) | |
tree | 8431ad8802b715613f9ef190af4739cc42ee3e57 | |
parent | b88db7573cc342793b65e792649dca5c466bea9c (diff) | |
parent | 6ef44b78495403552ca4f6808656bd95a7813c58 (diff) | |
download | tor-53dac6df1802bc68fb399a9bd3389f952740f56d.tar.gz tor-53dac6df1802bc68fb399a9bd3389f952740f56d.zip |
Merge remote-tracking branch 'origin/maint-0.2.2'
-rw-r--r-- | changes/bug4353 | 7 | ||||
-rw-r--r-- | src/or/config.c | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/changes/bug4353 b/changes/bug4353 new file mode 100644 index 0000000000..5e80c902c8 --- /dev/null +++ b/changes/bug4353 @@ -0,0 +1,7 @@ + o Minor bugfixes: + - When running as client without a geoip database, do not print a + misleading (and plain wrong) log message that we're collecting + dirreq statistics - we're not collecting statistics as clients. + Also don't create a useless (because empty) stats file in the + stats/ directory. Fixes bug 4353, bugfix on 0.2.2.34. + diff --git a/src/or/config.c b/src/or/config.c index 1b9f9fb475..afccf2e84e 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1541,6 +1541,15 @@ options_act(const or_options_t *old_options) options->BridgeAuthoritativeDir) { time_t now = time(NULL); int print_notice = 0; + + /* If we aren't acting as a server, we can't collect stats anyway. */ + if (!server_mode(options)) { + options->CellStatistics = 0; + options->DirReqStatistics = 0; + options->EntryStatistics = 0; + options->ExitPortStatistics = 0; + } + if ((!old_options || !old_options->CellStatistics) && options->CellStatistics) { rep_hist_buffer_stats_init(now); |