X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Ffreenet%2Fperiodicdbmaintenance.cpp;h=caf14abe3d51a9791b53e8d7ffee639784d0ceaf;hp=073da197e92296fd7d07547abd01af6c8f2af9c4;hb=44f964d9b2b2d55a5b5672e9297717bd25fa8ee2;hpb=52581afffd81f5a71c129d87e3ac822d9522f12d diff --git a/src/freenet/periodicdbmaintenance.cpp b/src/freenet/periodicdbmaintenance.cpp index 073da19..caf14ab 100644 --- a/src/freenet/periodicdbmaintenance.cpp +++ b/src/freenet/periodicdbmaintenance.cpp @@ -143,8 +143,6 @@ void PeriodicDBMaintenance::Do1DayMaintenance() m_db->Execute("DELETE FROM tblIntroductionPuzzleInserts WHERE Day<='"+date.Format("%Y-%m-%d")+"';"); m_db->Execute("DELETE FROM tblIntroductionPuzzleRequests WHERE Day<='"+date.Format("%Y-%m-%d")+"';"); - m_log->WriteLog(LogFile::LOGLEVEL_DEBUG,"PeriodicDBMaintenance::Do1DayMaintenance"); - // delete all identities we've never seen and were added more than 20 days ago date.SetToGMTime(); date.Add(0,0,0,-20); @@ -249,6 +247,8 @@ void PeriodicDBMaintenance::Do1DayMaintenance() m_db->Execute("DELETE FROM tblIdentityTrust WHERE LocalIdentityID NOT IN (SELECT LocalIdentityID FROM tblLocalIdentity);"); m_db->Execute("DELETE FROM tblIdentityTrust WHERE IdentityID NOT IN (SELECT IdentityID FROM tblIdentity);"); + m_log->WriteLog(LogFile::LOGLEVEL_DEBUG,"PeriodicDBMaintenance::Do1DayMaintenance"); + } void PeriodicDBMaintenance::Process()