persistentstorage/dbms/pcdbms/ustor/US_FILE.CPP
changeset 35 0d6db0a14001
parent 25 63532cdadd44
--- a/persistentstorage/dbms/pcdbms/ustor/US_FILE.CPP	Fri Jun 11 15:29:22 2010 +0300
+++ b/persistentstorage/dbms/pcdbms/ustor/US_FILE.CPP	Tue Jul 06 16:18:30 2010 +0300
@@ -91,13 +91,11 @@
 		{
 	default:
 		__LEAVE(KErrNotSupported);
-//  When the file cache in file server is on, the order of file writing is not guaranteed which could cause data inconsistency in some circumstances, for example, when the power is lost in the middle of data transaction. Therefore, the file write cache is switched off here to maintain the file integrity .      
 	case TDbFormat::ECreate:
-		store=CPermanentFileStore::CreateL(iFs,aName,EFileRead|EFileWrite|EFileWriteDirectIO);
+		store=CPermanentFileStore::CreateL(iFs,aName,EFileRead|EFileWrite);
 		break;
-//  When the file cache in file server is on, the order of file writing is not guaranteed which could cause data inconsistency in some circumstances, for example, when the power is lost in the middle of data transaction. Therefore, the file write cache is switched off here to maintain the file integrity .      
 	case TDbFormat::EReplace:
-		store=CPermanentFileStore::ReplaceL(iFs,aName,EFileRead|EFileWrite|EFileWriteDirectIO);
+		store=CPermanentFileStore::ReplaceL(iFs,aName,EFileRead|EFileWrite);
 		break;
 		};
 	iStore=store;
@@ -140,8 +138,6 @@
 //
 	iName=aName.AllocL();
 	const TUint mode=aMode==TDbFormat::EReadOnly ? EFileShareReadersOnly : EFileWrite;
-//  When the file cache in file server is on, the order of file writing is not guaranteed which could cause data inconsistency in some circumstances, for example, when the power is lost in the middle of data transaction. Therefore, the file write cache is switched off here to maintain the file integrity .      
-	mode=mode|EFileWriteDirectIO;
 	CFileStore* store=CPermanentFileStore::OpenL(iFs,*iName,mode);
 	iStore=store;
 	CDbStoreDatabase::RestoreL(DatabaseIdL(store->Root()));