[mythtv-commits] Ticket #3280: Add IsMasterBackend and BackendIsRunning functions to mythcontext
MythTV
mythtv at cvs.mythtv.org
Thu Aug 16 07:44:35 UTC 2007
#3280: Add IsMasterBackend and BackendIsRunning functions to mythcontext
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: stuartm
Type: patch | Status: reopened
Priority: minor | Milestone: 0.21
Component: mythtv | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
-----------------------+----------------------------------------------------
Comment(by Matthew Wire <devel at mrwire.co.uk>):
1. Before your patch: IsMasterBackend would return true if the master ip
matches the host ip. So the backend does not actually have to be running
for this to be the case.[[BR]]
2. After your patch: IsMasterBackend will only return true if we are on
the master backend and the backend is currently running.[[BR]]
I think (1.) is the better behaviour here. If you want behaviour like
(2.) you can do (IsMasterBackend && BackendIsRunning).[[BR]]
There may be situations where you want to know whether you are running on
the master backend even when it is not running - for example, the backend
should be stopped while running mythtv-setup but there may be settings you
only want to display on the master backend etc.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3280#comment:5>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list