Revert "Checkpoint SOCI exactly every 1000 pages."

This reverts commit e874a2624f.
This commit is contained in:
Tom Ritchford
2015-04-20 13:50:29 -04:00
committed by Vinnie Falco
parent 83003e43d7
commit ec190bae33

View File

@@ -224,9 +224,13 @@ WALCheckpointer::~WALCheckpointer ()
void WALCheckpointer::runCheckpoint (const char* db, int pages)
{
if ((pages + 1) % checkpointPageCount)
if (pages < checkpointPageCount)
return;
// TODO: after it reaches 1000 pages, won't it checkpoint on every
// page after that?
// Should the line above be if ((1 + pages) % checkpointPageCount)?
{
ScopedLockType sl (mutex_);
if (running_)