diff -r acef663c1218 -r b73a2e62868f metadataengine/server/src/mdsmanipulationengine.cpp --- a/metadataengine/server/src/mdsmanipulationengine.cpp Tue Jan 26 12:13:20 2010 +0200 +++ b/metadataengine/server/src/mdsmanipulationengine.cpp Tue Feb 02 00:24:33 2010 +0200 @@ -1002,6 +1002,20 @@ CleanupStack::PopAndDestroy( &transaction ); } +void CMdSManipulationEngine::CheckMassStorageMediaIdL( const TUint32 aMediaId ) + { + CMdSSqLiteConnection& connection = MMdSDbConnectionPool::GetDefaultDBL(); + RMdSTransaction transaction( connection ); + CleanupClosePushL( transaction ); + User::LeaveIfError( transaction.Error() ); + + iManipulate->CheckMassStorageMediaIdL( aMediaId ); + + transaction.CommitL(); + + CleanupStack::PopAndDestroy( &transaction ); + } + void CMdSManipulationEngine::AddRelationDefL( TDefId aNamespaceId, const TDesC& aRelationDefName ) { CMdsNamespaceDef* namespaceDef = CONST_CAST( CMdsNamespaceDef*, iSchema.GetNamespaceByIdL( aNamespaceId ) );