diff options
author | Jörg Barfurth <jb@openoffice.org> | 2001-06-22 11:30:34 +0000 |
---|---|---|
committer | Jörg Barfurth <jb@openoffice.org> | 2001-06-22 11:30:34 +0000 |
commit | 72d873946a3bf8f4572ea8f424798d04363d4e13 (patch) | |
tree | 5438d9d47dc778cbd9c7eedb406c6b793c1ee798 /configmgr/source | |
parent | 5a602699c2564be5e03f31285da66d2d8cb7c60a (diff) |
#88551# Added warning, if using lazy-write together with no-cache
Diffstat (limited to 'configmgr/source')
-rw-r--r-- | configmgr/source/api2/confproviderimpl2.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/configmgr/source/api2/confproviderimpl2.cxx b/configmgr/source/api2/confproviderimpl2.cxx index 478a69a42b24..a4e269eaff68 100644 --- a/configmgr/source/api2/confproviderimpl2.cxx +++ b/configmgr/source/api2/confproviderimpl2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: confproviderimpl2.cxx,v $ * - * $Revision: 1.24 $ + * $Revision: 1.25 $ * - * last change: $Author: dg $ $Date: 2001-06-14 10:02:27 $ + * last change: $Author: jb $ $Date: 2001-06-22 12:30:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -187,7 +187,14 @@ namespace configmgr CFG_TRACE_INFO_NI("config provider: node accessor extracted from the args is %s", OUSTRING2ASCII(sPath)); CFG_TRACE_INFO_NI("config provider: level depth extracted from the args is %i", nLevels); - if (!xOptions->canUseCache()) CFG_TRACE_INFO_NI("config provider: Ignoring cache for request"); + if (!xOptions->canUseCache()) + { + CFG_TRACE_INFO_NI("config provider: Ignoring cache for request"); + OSL_ENSURE( !xOptions->getLazyWrite(), "WARNING: Async writing is enabled for non-cached node. Results may be unexpected."); + if (xOptions->getLazyWrite()) + CFG_TRACE_WARNING_NI("config provider: Async writing is enabled for non-cached node. Results may be unexpected."); + } + OUString sUser = xOptions->getUser(); if (sUser.getLength()) |