persistentstorage/store/UFILE/UF_DICT.CPP
branchRCL_3
changeset 23 26645d81f48d
parent 16 b6ab70c1385f
child 24 cc28652e0254
--- a/persistentstorage/store/UFILE/UF_DICT.CPP	Thu Aug 19 11:36:21 2010 +0300
+++ b/persistentstorage/store/UFILE/UF_DICT.CPP	Tue Aug 31 16:57:14 2010 +0300
@@ -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,10 +205,9 @@
 			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)
 				{