equal
deleted
inserted
replaced
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
1327 // If this operation fails, but the dirty bit has been successfully set, the backup TOC ref will be used, |
1327 // If this operation fails, but the dirty bit has been successfully set, the backup TOC ref will be used, |
1328 // when the store is reopened; |
1328 // when the store is reopened; |
1329 // -3- clear the dirty bit (1 byte "file write" op). The commit operation has completed successfully; |
1329 // -3- clear the dirty bit (1 byte "file write" op). The commit operation has completed successfully; |
1330 MStreamBuf* CPermanentStoreCoord::BeginL(TPermanentStoreHeader& aHeader) |
1330 MStreamBuf* CPermanentStoreCoord::BeginL(TPermanentStoreHeader& aHeader) |
1331 { |
1331 { |
1332 __ASSERT_DEBUG(!aHeader.IsDirty()&&aHeader.BackupToc()==iToc&&iReloc==0,User::Invariant()); |
1332 __ASSERT_DEBUG(!aHeader.IsDirty() && aHeader.BackupToc() == Toc() && iReloc == 0, User::Invariant()); |
1333 MStreamBuf& buf=*Host().HostL(); |
1333 MStreamBuf& buf=*Host().HostL(); |
1334 buf.SeekL(buf.EWrite,Base()+KPermanentStoreHeaderOffset); |
1334 buf.SeekL(buf.EWrite,Base()+KPermanentStoreHeaderOffset); |
1335 TFileQoS fileQos = FileQoSL(); |
1335 TFileQoS fileQos = FileQoSL(); |
1336 if (fileQos<EBlockAtomic) |
1336 if (fileQos<EBlockAtomic) |
1337 { |
1337 { |