diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-10-20 21:50:23 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-10-21 15:06:41 +0200 |
commit | 666ec98b7e10ca8acd891363587fd345373b3716 (patch) | |
tree | 032b1c78ff4b2f75a77233137ea10d8f32b93652 /dbaccess | |
parent | ed45c87896de74048708d51c050ecd42c9f4a0a0 (diff) |
dbaccess: surely the problem is that the storage could _not_ be committed?
Change-Id: I03e7e09e185e9cb25868c86de0b402b89e7f5d75
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/dataaccess/ModelImpl.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/dbaccess/source/core/dataaccess/ModelImpl.cxx b/dbaccess/source/core/dataaccess/ModelImpl.cxx index 72cc6b276e02..b756bc8432f3 100644 --- a/dbaccess/source/core/dataaccess/ModelImpl.cxx +++ b/dbaccess/source/core/dataaccess/ModelImpl.cxx @@ -54,6 +54,7 @@ #include <tools/debug.hxx> #include <tools/diagnose_ex.h> #include <osl/diagnose.h> +#include <sal/log.hxx> #include <tools/errcode.hxx> #include <tools/urlobj.hxx> #include <unotools/sharedunocomponent.hxx> @@ -796,12 +797,9 @@ Reference< XSingleServiceFactory > ODatabaseModelImpl::createStorageFactory() co void ODatabaseModelImpl::commitRootStorage() { Reference< XStorage > xStorage( getOrCreateRootStorage() ); -#if OSL_DEBUG_LEVEL > 0 - bool bSuccess = -#endif - commitStorageIfWriteable_ignoreErrors( xStorage ); - OSL_ENSURE( bSuccess || !xStorage.is(), - "ODatabaseModelImpl::commitRootStorage: could commit the storage!" ); + bool bSuccess = commitStorageIfWriteable_ignoreErrors( xStorage ); + SAL_WARN_IF(!bSuccess && xStorage.is(), "dbaccess", + "ODatabaseModelImpl::commitRootStorage: could not commit the storage!"); } Reference< XStorage > ODatabaseModelImpl::getOrCreateRootStorage() |