mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
2005-04-27 Ulrich Drepper <drepper@redhat.com>
[BZ #1094] * nscd/connections.c (nscd_run): Use time() value in prune_cache call, not timeout value, since the latter might be from another clock.
This commit is contained in:
parent
6bdd7b167e
commit
d122043d22
@ -1171,8 +1171,7 @@ handle_request: request received (Version = %d)"), req.version);
|
||||
/* The pthread_cond_timedwait() call timed out. It is time
|
||||
to clean up the cache. */
|
||||
assert (my_number < lastdb);
|
||||
prune_cache (&dbs[my_number],
|
||||
prune_ts.tv_sec + (prune_ts.tv_nsec >= 500000000));
|
||||
prune_cache (&dbs[my_number], time (NULL));
|
||||
|
||||
if (clock_gettime (timeout_clock, &prune_ts) == -1)
|
||||
/* Should never happen. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user