diff -r 667e88a979d7 -r 31a8f755b7fe persistentstorage/sql/SRC/Server/Compact/SqlCompactEntry.cpp --- a/persistentstorage/sql/SRC/Server/Compact/SqlCompactEntry.cpp Mon Mar 15 12:46:30 2010 +0200 +++ b/persistentstorage/sql/SRC/Server/Compact/SqlCompactEntry.cpp Thu Apr 01 00:19:42 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)