aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-11 20:48:01 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-11 20:48:01 +0000
commit72ae1e97d03be3fba0c1a85137e65b9bdc066f27 (patch)
treeb0e90ef67d2a206b4c9cf700d9655e8aabf2b254
parent5a617b9e75e048ff53d272ec2071840f3356a2c3 (diff)
downloadglibc-72ae1e97d03be3fba0c1a85137e65b9bdc066f27.zip
glibc-72ae1e97d03be3fba0c1a85137e65b9bdc066f27.tar.gz
glibc-72ae1e97d03be3fba0c1a85137e65b9bdc066f27.tar.bz2
Update.
* nscd/connections.c (nscd_run): Call setup_thread only for enabled databases.
-rw-r--r--ChangeLog3
-rw-r--r--nscd/connections.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f3c26c..7731b48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2004-09-11 Ulrich Drepper <drepper@redhat.com>
+ * nscd/connections.c (nscd_run): Call setup_thread only for enabled
+ databases.
+
* sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
2004-09-10 Ulrich Drepper <drepper@redhat.com>
diff --git a/nscd/connections.c b/nscd/connections.c
index 11be7c3..b95ab05 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -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;