summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-02-28 18:37:46 -0800
committerNoriko Hosoi <nhosoi@redhat.com>2010-02-28 18:37:46 -0800
commit9aec0f110d8238de66ebbf2f6eb71cb363220c40 (patch)
tree7748c231fa5f11e4be26cdda419e37a31125acf1
parent91bc19ddbd2b5f8bed2bf74fcfad7ddbd150a133 (diff)
555970 - missing read lock in the combination of cos and nsview
https://bugzilla.redhat.com/show_bug.cgi?id=555970 Description: view read lock was missing in a view api called from COS.
-rw-r--r--ldap/servers/plugins/views/views.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ldap/servers/plugins/views/views.c b/ldap/servers/plugins/views/views.c
index 68e991ff..a6646d89 100644
--- a/ldap/servers/plugins/views/views.c
+++ b/ldap/servers/plugins/views/views.c
@@ -306,6 +306,9 @@ static int _internal_api_views_entry_exists_general(char *view_dn, Slapi_Entry *
* view filter - either match will do
*/
+ /* Read lock the cache */
+ views_read_lock();
+
/* find the view */
view = views_cache_find_view(view_dn);
if(0==view)
@@ -348,6 +351,7 @@ static int _internal_api_views_entry_exists_general(char *view_dn, Slapi_Entry *
}
bail:
+ views_unlock();
return ret;
}