--- a/persistentstorage/sql/SRC/Server/Compact/SqlCompactEntry.cpp Fri Apr 16 16:49:27 2010 +0300
+++ b/persistentstorage/sql/SRC/Server/Compact/SqlCompactEntry.cpp Mon May 03 14:09:14 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
@@ -32,7 +32,7 @@
@param aSettings Background compaction settings/thresholds
@param aTimer The background compaction timer object
-When the free pages threshold reach certain the threshold, the background compaction
+When the free pages threshold is reached, the background compaction
for this entry will be kicked-off.
@return A pointer to the created CSqlCompactEntry instance
@@ -210,14 +210,7 @@
__SQLASSERT(processedPageCount >= 0, ESqlPanicInternalError);
if(err == KErrNone)
{
- if(processedPageCount > 0)
- {
- iPageCount -= processedPageCount;
- }
- else
- {
- iPageCount = 0;
- }
+ iPageCount -= processedPageCount;
__SQLASSERT(iPageCount >= 0, ESqlPanicInternalError);
}
if(iPageCount <= 0)