diff options
author | Bradley Nicholes <bnicholes@apache.org> | 2004-06-25 21:56:35 +0200 |
---|---|---|
committer | Bradley Nicholes <bnicholes@apache.org> | 2004-06-25 21:56:35 +0200 |
commit | 043a7ff9ed01991554ea87cc9ab4b5eca3e6e4be (patch) | |
tree | 012727b189b99576124e2344b4a50163976eb13f /include | |
parent | Make sure that the shared memory pointers are propagated down through the var... (diff) | |
download | apache2-043a7ff9ed01991554ea87cc9ab4b5eca3e6e4be.tar.xz apache2-043a7ff9ed01991554ea87cc9ab4b5eca3e6e4be.zip |
Replace the thread reader/writer lock that protects the shared memory cache to a global mutex so that the shared memory is protected across processes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/util_ldap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/util_ldap.h b/include/util_ldap.h index 6f4bce5d1a..36279f3492 100644 --- a/include/util_ldap.h +++ b/include/util_ldap.h @@ -102,8 +102,8 @@ typedef struct util_ldap_state_t { apr_pool_t *pool; /* pool from which this state is allocated */ #if APR_HAS_THREADS apr_thread_mutex_t *mutex; /* mutex lock for the connection list */ - apr_thread_rwlock_t *util_ldap_cache_lock; #endif + apr_global_mutex_t *util_ldap_cache_lock; apr_size_t cache_bytes; /* Size (in bytes) of shared memory cache */ char *cache_file; /* filename for shm */ @@ -124,6 +124,7 @@ typedef struct util_ldap_state_t { /* cache ald */ void *util_ldap_cache; + char *lock_file; /* filename for shm lock mutex */ } util_ldap_state_t; |