(nscd_run): Call setup_thread only for enabled databases.
authordrepper <drepper>
Sat, 11 Sep 2004 20:47:00 +0000 (20:47 +0000)
committerdrepper <drepper>
Sat, 11 Sep 2004 20:47:00 +0000 (20:47 +0000)
nscd/connections.c

index 11be7c3..b95ab05 100644 (file)
@@ -772,7 +772,7 @@ nscd_run (void *p)
   time_t next_prune = run_prune ? time (NULL) + CACHE_PRUNE_INTERVAL : 0;
   static unsigned long int nready;
 
-  if (my_number < lastdb)
+  if (run_prune)
     setup_thread (&dbs[my_number]);
 
   conn.fd = sock;