Skip to content
Newer
Older
100644 24 lines (20 sloc) 808 Bytes
420aa2d @bradfitz start of the incr fix, rearranges a bunch, adds util, tests, etc
bradfitz authored Oct 14, 2008
1 #include "memcached.h"
2
3 /*
4 * This file contains global variables shared across the rest of the
5 * memcached codebase. These were originally in memcached.c but had
6 * to be removed to make the rest of the object files linkable into
7 * the test infrastructure.
8 *
9 */
10
11 /*
12 * We keep the current time of day in a global variable that's updated by a
13 * timer event. This saves us a bunch of time() system calls (we really only
14 * need to get the time once a second, whereas there can be tens of thousands
15 * of requests a second) and allows us to use server-start-relative timestamps
16 * rather than absolute UNIX timestamps, a space savings on systems where
17 * sizeof(time_t) > sizeof(unsigned int).
18 */
19 volatile rel_time_t current_time;
20
21 /** exported globals **/
22 struct stats stats;
23 struct settings settings;
Something went wrong with that request. Please try again.