persistentstorage/sql/OsLayer/FileBuf64.cpp
branchRCL_3
changeset 16 b6ab70c1385f
parent 15 fcc16690f446
child 21 28839de615b4
--- a/persistentstorage/sql/OsLayer/FileBuf64.cpp	Tue May 25 14:35:19 2010 +0300
+++ b/persistentstorage/sql/OsLayer/FileBuf64.cpp	Wed Jun 09 11:36:09 2010 +0300
@@ -1107,9 +1107,9 @@
 	const TInt KDefaultPageSize = 1024;//The journal header size is equal to 512 bytes, so it is not easy
                                        //to detect the 512 bytes page size. 
 	
-	__FBUF64_ASSERT(aRwDataLength >= 0, EFBufPanicRwDataLength);
+	__FBUF64_ASSERT(aRwDataLength > 0, EFBufPanicRwDataLength);
 	__FILEBUF64_INVARIANT();
-	if(iOptimized || aRwDataLength == 0)
+	if(iOptimized)
 		{
 		__FILEBUF64_INVARIANT();
 		return KErrNone;