Kaydet (Commit) 666ec98b authored tarafından Michael Stahl's avatar Michael Stahl

dbaccess: surely the problem is that the storage could _not_ be committed?

Change-Id: I03e7e09e185e9cb25868c86de0b402b89e7f5d75
üst ed45c878
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment