about summary refs log tree commit diff
path: root/nscd/nscd_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/nscd_helper.c')
-rw-r--r--nscd/nscd_helper.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c
index 95661b6ff3..01c4c81848 100644
--- a/nscd/nscd_helper.c
+++ b/nscd/nscd_helper.c
@@ -234,11 +234,8 @@ __nscd_get_map_ref (request_type type, const char *name,
     {
       /* If not mapped or timestamp not updated, request new map.  */
       if (cur == NULL
-	  // XXX The following syscalls increases the cost of the entire
-	  // XXX lookup by a factor of 5 but unfortunately there is not
-	  // XXX much we can do except hoping we get a userlevel
-	  // XXX implementation soon.
-	  || cur->head->timestamp + MAPPING_TIMEOUT < time (NULL))
+	  || (cur->head->nscd_certainly_running == 0
+	      && cur->head->timestamp + MAPPING_TIMEOUT < time (NULL)))
 	cur = get_mapping (type, name, &mapptr->mapped);
 
       if (__builtin_expect (cur != NO_MAPPING, 1))