summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-01-27 15:17:39 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-01-27 15:17:39 +0000
commit7f32b0dfb29748c6f56ec98c517cbd04834bc94d (patch)
treef39ac29df59bd33033e8098d028d572190f9a429 /configmgr
parent2daff6b26a57d84d06ee2acd930c0737f4d2ce38 (diff)
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
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/treecache/cachecontroller.cxx15
1 files changed, 12 insertions, 3 deletions
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
}
}
}