mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
* nscd/connections.c (dbs): Initialize .prunelock.
This commit is contained in:
parent
9636a217e4
commit
cabfcde111
@ -3,6 +3,7 @@
|
||||
* nscd/nscd.h (struct database_dyn): Add prunelock field.
|
||||
* nscd/cache.c (prune_cache): Take prunelock before starting the
|
||||
work. Just return in case it is already taken.
|
||||
* nscd/connections.c (dbs): Initialize .prunelock.
|
||||
|
||||
2006-05-25 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
|
@ -100,6 +100,7 @@ struct database_dyn dbs[lastdb] =
|
||||
{
|
||||
[pwddb] = {
|
||||
.lock = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
|
||||
.prunelock = PTHREAD_MUTEX_INITIALIZER,
|
||||
.enabled = 0,
|
||||
.check_file = 1,
|
||||
.persistent = 0,
|
||||
@ -117,6 +118,7 @@ struct database_dyn dbs[lastdb] =
|
||||
},
|
||||
[grpdb] = {
|
||||
.lock = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
|
||||
.prunelock = PTHREAD_MUTEX_INITIALIZER,
|
||||
.enabled = 0,
|
||||
.check_file = 1,
|
||||
.persistent = 0,
|
||||
@ -134,6 +136,7 @@ struct database_dyn dbs[lastdb] =
|
||||
},
|
||||
[hstdb] = {
|
||||
.lock = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
|
||||
.prunelock = PTHREAD_MUTEX_INITIALIZER,
|
||||
.enabled = 0,
|
||||
.check_file = 1,
|
||||
.persistent = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user