From 7f32b0dfb29748c6f56ec98c517cbd04834bc94d Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Fri, 27 Jan 2006 15:17:39 +0000 Subject: INTEGRATION: CWS lo11 (1.15.28); FILE MERGED 2006/01/18 16:14:47 lo 1.15.28.1: #122215# refresh everything in the cache --- configmgr/source/treecache/cachecontroller.cxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'configmgr') diff --git a/configmgr/source/treecache/cachecontroller.cxx b/configmgr/source/treecache/cachecontroller.cxx index a013057ae0c2..e832075e78ac 100644 --- a/configmgr/source/treecache/cachecontroller.cxx +++ b/configmgr/source/treecache/cachecontroller.cxx @@ -4,9 +4,9 @@ * * $RCSfile: cachecontroller.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: rt $ $Date: 2005-09-08 04:22:01 $ + * last change: $Author: hr $ $Date: 2006-01-27 16:17:39 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -922,12 +922,21 @@ void CacheController::refreshAllComponents() CFG_UNO_THROW_ALL() itr != aModuleList.end(); ++itr) { //Check the cacheline has atleast one client reference + + if (itr->second->clientReferences() > 0) { ComponentRequest aRequest(itr->first,i->first); refreshComponent(aRequest); + } else + { + // FIXME: otherwise dispose now + // XXX: (lo) refresh all, preventing cache corruption. + // An unused component should be purged from the cache + // instead of being refreshed + ComponentRequest aRequest(itr->first,i->first); + refreshComponent(aRequest); } - // FIXME: otherwise dispose now } } } -- cgit