diff -r c163ef0b758d -r ea59c434026a mpserviceplugins/mpxsqlitedbhgplugin/src/mpxdbhandler.cpp --- a/mpserviceplugins/mpxsqlitedbhgplugin/src/mpxdbhandler.cpp Fri Jun 11 13:36:36 2010 +0300 +++ b/mpserviceplugins/mpxsqlitedbhgplugin/src/mpxdbhandler.cpp Wed Jun 23 18:10:13 2010 +0300 @@ -1549,6 +1549,8 @@ iOutOfDisk = ETrue; } + User::LeaveIfError( err ); + if(!iOutOfDisk) { MPX_TRAP(err,CheckDiskSpaceOnDrivesL()); @@ -1573,26 +1575,29 @@ void CMPXDbHandler::RefreshEndL() { MPX_FUNC("CMPXDbHandler::RefreshEndL"); - iRefresh = EFalse; - EndTransactionL(KErrNone); - if (!iOutOfDisk) - { - // Write last refreshed time as current time - // This also sets corrupt = 0 - TTime curTime; - curTime.HomeTime(); - SetLastRefreshedTimeL(curTime); - } + if ( iRefresh ) + { + iRefresh = EFalse; + EndTransactionL(KErrNone); + if (!iOutOfDisk) + { + // Write last refreshed time as current time + // This also sets corrupt = 0 + TTime curTime; + curTime.HomeTime(); + SetLastRefreshedTimeL(curTime); + } #ifdef ABSTRACTAUDIOALBUM_INCLUDED - //for AbstractAlbum garbage collection - //can not leave - TRAP_IGNORE( AbstractAlbumCleanUpL() ); + //for AbstractAlbum garbage collection + //can not leave + TRAP_IGNORE( AbstractAlbumCleanUpL() ); #endif #ifdef __RAMDISK_PERF_ENABLE - iDbManager->CopyDBsFromRamL(); + iDbManager->CopyDBsFromRamL(); #endif //__RAMDISK_PERF_ENABLE + } } // ----------------------------------------------------------------------------