Skip to content

Commit

Permalink
* nscd/connections.c (dbs): Initialize .prunelock.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed May 30, 2006
1 parent 9636a21 commit cabfcde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
3 changes: 3 additions & 0 deletions nscd/connections.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit cabfcde

Please sign in to comment.