summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-03-30 14:02:17 +0000
committerRüdiger Timm <rt@openoffice.org>2004-03-30 14:02:17 +0000
commit80dc47516c7265ffdbd75c6265de403ed9245d22 (patch)
tree6231065250c6bbab919ff695b5f68fbe058c09ce /configmgr
parentcf6beb6d85f236f9fae7dff2fbda30ff8a913def (diff)
INTEGRATION: CWS cfg04 (1.16.62); FILE MERGED
2004/02/23 11:35:09 ssmith 1.16.62.2: RESYNC: (1.16-1.17); FILE MERGED 2003/12/01 11:19:39 ssmith 1.16.62.1: merge from apoco2
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/treecache/invalidatetree.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/configmgr/source/treecache/invalidatetree.cxx b/configmgr/source/treecache/invalidatetree.cxx
index a143f4dc7044..189ddd56352b 100644
--- a/configmgr/source/treecache/invalidatetree.cxx
+++ b/configmgr/source/treecache/invalidatetree.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: invalidatetree.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: kz $ $Date: 2004-03-23 10:31:20 $
+ * last change: $Author: rt $ $Date: 2004-03-30 15:02:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -218,20 +218,23 @@ CacheLocation CacheController::refreshComponent(ComponentRequest const & _aReque
{
if (m_bDisposing) return CacheLocation();
- CacheRef aCache = m_aCacheList.get(_aRequest.getOptions());
+ CacheRef aCache = this->getCacheAlways(_aRequest.getOptions());
+
if (!aCache.is()) return CacheLocation();
+ osl::MutexGuard aCacheLineGuard(aCache->mutex());
+
// load the Node direct from the session, without using the cache
ComponentRequest aForcedRequest(_aRequest);
aForcedRequest.forceReload();
- ComponentResult aLoadedInstance = this->getComponentData(aForcedRequest);
+ ComponentResult aLoadedInstance = this->getComponentData(aForcedRequest,false);
AbsolutePath aRequestPath = AbsolutePath::makeModulePath(_aRequest.getComponentName(), AbsolutePath::NoValidate());
NodeInstance aNodeInstance(aLoadedInstance.mutableInstance().mutableData(),aRequestPath) ;
NodeResult aLoadedNodeInstance(aNodeInstance) ;
CacheLocation aResult;
- if (aLoadedInstance.is())
+ if (aLoadedNodeInstance.is())
{
Name aModuleName = aLoadedNodeInstance->root().getModuleName();