Skip to content

Commit

Permalink
Fix database update for local scope housekeeping tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerrp committed Jun 5, 2013
1 parent c66ff6c commit 27dfd82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mythtv/libs/libmythbase/housekeeper.cpp
Expand Up @@ -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));
Expand Down
3 changes: 2 additions & 1 deletion mythtv/programs/mythbackend/backendhousekeeper.h
Expand Up @@ -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);
};

Expand Down

0 comments on commit 27dfd82

Please sign in to comment.