Tag: cws_src680_sb36
User: sb      
Date: 06/03/13 01:55:14

Modified:
 /dba/connectivity/source/drivers/hsqldb/
  HDriver.cxx

Log:
 RESYNC: (1.14-1.15); FILE MERGED

File Changes:

Directory: /dba/connectivity/source/drivers/hsqldb/
===================================================

File [changed]: HDriver.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/hsqldb/HDriver.cxx?r1=1.12.8.2&r2=1.12.8.3
Delta lines:  +32 -28
---------------------
--- HDriver.cxx 21 Sep 2005 10:40:03 -0000      1.12.8.2
+++ HDriver.cxx 13 Mar 2006 09:55:12 -0000      1.12.8.3
@@ -483,8 +483,9 @@
                }
         if ( bLastOne )
         {
-            Reference<XTransactionListener> xListener(*this,UNO_QUERY);
-                       
StorageContainer::revokeStorage(_aIter->second.first,xListener);
+            // Reference<XTransactionListener> xListener(*this,UNO_QUERY);
+            // a shutdown should commit all changes to the db files
+                       
StorageContainer::revokeStorage(_aIter->second.first,NULL);
         }
         if ( !m_bInShutDownConnections )
             m_aConnections.erase(_aIter);
@@ -546,6 +547,8 @@
 
         Reference< XStorage> xStorage(aEvent.Source,UNO_QUERY);
         ::rtl::OUString sKey = StorageContainer::getRegisteredKey(xStorage);
+        if ( sKey.getLength() )
+        {
         TWeakPairVector::iterator i = 
::std::find_if(m_aConnections.begin(),m_aConnections.end(),::std::compose1(
                          ::std::bind2nd(::std::equal_to< ::rtl::OUString 
>(),sKey)
                         
,::std::compose1(::std::select1st<TWeakConnectionPair>(),::std::select2nd< 
TWeakPair >())));
@@ -575,6 +578,7 @@
                {
                 OSL_ENSURE( false, "ODriverDelegator::preCommit: caught an 
exception!" );
                }
+            }
         }
     }
     //------------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to