mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Revert "Checkpoint SOCI exactly every 1000 pages."
This reverts commit e874a2624f.
This commit is contained in:
committed by
Vinnie Falco
parent
83003e43d7
commit
ec190bae33
@@ -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_)
|
||||
|
||||
Reference in New Issue
Block a user