From f790d52f62e5b2b8593380c4b96b7df4cea3883c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 9 Jul 2009 22:16:58 -0400 Subject: [PATCH] Bug Fix - #194 - Fixed bug that causes tasks awaking from their waiting state to not be written back to the pending file. --- src/TDB.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TDB.cpp b/src/TDB.cpp index 4971a5c97..e00713128 100644 --- a/src/TDB.cpp +++ b/src/TDB.cpp @@ -411,6 +411,7 @@ int TDB::commit () //////////////////////////////////////////////////////////////////////////////// // Scans the pending tasks for any that are completed or deleted, and if so, // moves them to the completed.data file. Returns a count of tasks moved. +// Now reverts expired waiting tasks to pending. int TDB::gc () { Timer t ("TDB::gc"); @@ -451,6 +452,7 @@ int TDB::gc () { task->setStatus (Task::pending); task->remove ("wait"); + ++count; } still_pending.push_back (*task);