Permalink
Browse files

Fix database update for local scope housekeeping tasks.

  • Loading branch information...
wagnerrp committed Jun 5, 2013
1 parent c66ff6c commit 27dfd82e12e4aa967439c4cc48914af3e05ad496
Showing with 7 additions and 1 deletion.
  1. +5 −0 mythtv/libs/libmythbase/housekeeper.cpp
  2. +2 −1 mythtv/programs/mythbackend/backendhousekeeper.h
@@ -165,6 +165,11 @@ QDateTime HouseKeeperTask::UpdateLastRun(QDateTime last)
}
if (m_scope == kHKGlobal)
LOG(VB_GENERAL, LOG_DEBUG, QString("Updating global run time for %1").arg(m_dbTag));
else
LOG(VB_GENERAL, LOG_DEBUG, QString("Updating local run time for %1").arg(m_dbTag));
if (m_scope == kHKLocal)
query.bindValue(":HOST", gCoreContext->GetHostName());
query.bindValue(":TAG", m_dbTag);
query.bindValue(":TIME", MythDate::as_utc(last));
@@ -48,7 +48,8 @@ class ArtworkTask : public DailyHouseKeeperTask
class JobQueueRecoverTask : public DailyHouseKeeperTask
{
public:
JobQueueRecoverTask(void) : DailyHouseKeeperTask("JobQueueRecover") {};
JobQueueRecoverTask(void) : DailyHouseKeeperTask("JobQueueRecover",
kHKLocal) {};
bool DoRun(void);
};

0 comments on commit 27dfd82

Please sign in to comment.