Remember to mark v2 networkstatus non-dirty when we generate it; also, fix spaces.

svn:r4866
This commit is contained in:
Nick Mathewson 2005-08-26 22:08:24 +00:00
parent 3cc960c7dd
commit a74ad8efea

View File

@ -323,8 +323,6 @@ dirserv_wants_to_reject_router(routerinfo_t *ri, int *verified,
return 0;
}
/** Parse the server descriptor at desc and maybe insert it into the list of
* server descriptors. Set msg to a message that should be passed back to the
* origin of this descriptor, or to NULL.
@ -713,7 +711,6 @@ dirserv_dump_directory_to_string(char **dir_out,
return -1;
}
/** A cached_dir_t represents a cacheable directory object, along with its
* compressed form. */
typedef struct cached_dir_t {
@ -832,7 +829,6 @@ dirserv_set_cached_networkstatus_v2(const char *directory, const char *fp,
}
}
/** Helper: If we're authoritative and <b>auth_src</b> is set, use
* <b>auth_src</b>, otherwise use <b>cache_src</b>. If we're using
* <b>auth_src</b> and it's been <b>dirty</b> for at least
@ -1166,6 +1162,7 @@ generate_v2_networkstatus(void)
goto done;
set_cached_dir(&the_v2_networkstatus, status, time(NULL));
the_v2_networkstatus_is_dirty = 0;
dirserv_set_cached_networkstatus_v2(status, fingerprint, time(NULL));
r = 0;