From 1507c81f2a3a28129806bdeb98287766cf3bffb8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 2 Oct 2004 19:31:11 +0000 Subject: Update. 2004-10-02 Ulrich Drepper * nscd/nscd_helper.c (get_mapping): No need to check timestamp if nscd_certainly_running is nonzero. --- nscd/nscd_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nscd/nscd_helper.c') diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c index 3c8693a93d..0e16cb8aeb 100644 --- a/nscd/nscd_helper.c +++ b/nscd/nscd_helper.c @@ -160,7 +160,8 @@ get_mapping (request_type type, const char *key, if (head.version != DB_VERSION || head.header_size != sizeof (head) /* This really should not happen but who knows, maybe the update thread got stuck. */ - || head.timestamp + MAPPING_TIMEOUT < time (NULL)) + || (! head.nscd_certainly_running + && head.timestamp + MAPPING_TIMEOUT < time (NULL))) goto out_close; size_t size = (sizeof (head) + roundup (head.module * sizeof (ref_t), ALIGN) -- cgit v1.2.1