diff -r 26645d81f48d -r cc28652e0254 persistentstorage/store/UFILE/UF_DICT.CPP --- a/persistentstorage/store/UFILE/UF_DICT.CPP Tue Aug 31 16:57:14 2010 +0300 +++ b/persistentstorage/store/UFILE/UF_DICT.CPP Wed Sep 01 12:39:58 2010 +0100 @@ -154,7 +154,7 @@ for (TInt wait=KLockoutLimit;;) { RFile file; - // When the file server write caching is enabled, the order of file write operations is not guaranteed. + // When the file server write caching is enabled, the order of file write operations is not guaranteed. // This could cause data inconsistency in some circumstances,for example, when the power is lost in the // middle of a database transaction.Therefore, the file write caching is disabled for this file to maintain integrity. @@ -179,11 +179,11 @@ } if (r==KErrCorrupt) { - // silently replace the entire file if it is corrupt - // When the file server write caching is enabled, the order of file write operations is not guaranteed. - // This could cause data inconsistency in some circumstances,for example, when the power is lost in the - // middle of a database transaction.Therefore, the file write caching is disabled for this file to maintain integrity. - // + // silently replace the entire file if it is corrupt + // When the file server write caching is enabled, the order of file write operations is not guaranteed. + // This could cause data inconsistency in some circumstances,for example, when the power is lost in the + // middle of a database transaction.Therefore, the file write caching is disabled for this file to maintain integrity. + r=file.Replace(aFs,aName,EFileShareExclusive|EFileWrite|EFileWriteDirectIO); if (r==KErrInUse) break; // try again later... @@ -205,9 +205,10 @@ return; } case KErrNotFound: - // When the file server write caching is enabled, the order of file write operations is not guaranteed. - // This could cause data inconsistency in some circumstances,for example, when the power is lost in the - // middle of a database transaction.Therefore, the file write caching is disabled for this file to maintain integrity. + // When the file server write caching is enabled, the order of file write operations is not guaranteed. + // This could cause data inconsistency in some circumstances,for example, when the power is lost in the + // middle of a database transaction.Therefore, the file write caching is disabled for this file to maintain integrity. + r=file.Create(aFs,aName,EFileShareExclusive|EFileWrite|EFileWriteDirectIO); if (r==KErrNone) {