From f4b19dd9c8339ff4591aea9d821bacdf568f5de3 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 18 Aug 2009 07:25:38 +0000 Subject: Fixed missing ttl on 'completed' --- server/src/server.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/src/server.cc b/server/src/server.cc index a5a4880..f2be8a4 100644 --- a/server/src/server.cc +++ b/server/src/server.cc @@ -156,7 +156,9 @@ static std::string handleRequest(Transaction *transaction, continue; } - bool completed = db.checkMacro(transaction->cpr, macro.attributes["name"]); + bool completed = db.checkMacro(transaction->cpr, + macro.attributes["name"], + time(NULL)-Conf::db_max_ttl); answer += "