diff options
author | dormando <dormando@rydia.net> | 2011-08-09 14:57:51 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2011-08-10 08:44:52 -0700 |
commit | 51b68daa195ba37af1c87ba324eea504bd4cacdd (patch) | |
tree | 37bae358d9cab0c7782afb0246cb288084e5d41d /configure.ac | |
parent | baf85511adc37c0b47016f3a223ff9a82d1d5d79 (diff) | |
download | memcached-51b68daa195ba37af1c87ba324eea504bd4cacdd.tar.gz |
Use a monotonically increasing timer
gettimeofday() can flip around all willy-nilly, and is actually common for
users to cause this by having memcached start on boot before ntp launches
and corrects system time. libevent fires events on a monotonically increasing
clock, so we can more or less safely tick our internal timer up by one second
every time the handler runs.
Unfortunately we support expiration by date. If memcached's start time isn't
in sync with the rest of the world this feature won't work well, but it never
did.
Was originally going to make this optional, but I can't come up with a great
reason to do so. If it turns out this isn't "accurate enough", we can add the
clock_gettime() code inline.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions