From bbf65209fa15dce7b452ebac0d5ea66bd9466625 Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Feb 28 2015 01:51:49 +0000 Subject: Ticket #48048 - Fix coverity issues - 2015/2/24 Coverity defect 13051 - Other violation Description: _pool->pl_buffer_default_pages (used for BDB DB_MULTIPLE_KEY read) was assigned twice. modified: clcache_set_config in cl5_clcache.c --- diff --git a/ldap/servers/plugins/replication/cl5_clcache.c b/ldap/servers/plugins/replication/cl5_clcache.c index 60f288e..2c9d2bf 100644 --- a/ldap/servers/plugins/replication/cl5_clcache.c +++ b/ldap/servers/plugins/replication/cl5_clcache.c @@ -217,8 +217,7 @@ clcache_set_config () * for DB_MULTIPLE_KEY operation. */ _pool->pl_buffer_default_pages = CL5_DEFAULT_CONFIG_CACHEMEMSIZE / DEFAULT_CLC_BUFFER_PAGE_SIZE + 1; - _pool->pl_buffer_default_pages = DEFAULT_CLC_BUFFER_PAGE_COUNT; - if ( _pool->pl_buffer_default_pages <= 0 ) { + if ( _pool->pl_buffer_default_pages <= 0 ) { /* this never be true... */ _pool->pl_buffer_default_pages = DEFAULT_CLC_BUFFER_PAGE_COUNT; }