[mythtv-users] mythshutdown on a SBE - odd behavior
Hika van den Hoven
hikavdh at gmail.com
Sat Apr 12 00:20:10 UTC 2014
Hoi Hika,
Saturday, April 12, 2014, 2:12:43 AM, you wrote:
> Hoi Dave,
> Saturday, April 12, 2014, 1:47:50 AM, you wrote:
>> I must be missing something with the logic in 0.27 mythshutdown.
>> My MBE is recording (encoder 14), my SBE (encoder 18) is not and
>> there are no upcoming recordings on the SBE. I run mythshutdown on
>> the SBE and it returns Recording in progress...
>> But I don't understand why. Seems like since the SBE isn't
>> recording and should be allowed to shutdown
>> Looks like mythshutdown is blindly checking all encoders instead of
>> the just the encoder on the BE its being run on:
>>
>> 2014-04-11 18:56:18.793603 D MSqlQuery::exec(DBManager1) SELECT
>> cardid FROM capturecard ORDER BY cardid <<<< Returns 6 row(s)
>> 2014-04-11 18:56:18.793645 D MSqlQuery::next(DBManager1) Result: "cardid = 8"
>> 2014-04-11 18:56:18.793703 D MSqlQuery::next(DBManager1) Result: "cardid = 14"
>> 2014-04-11 18:56:18.793718 D MSqlQuery::next(DBManager1) Result: "cardid = 15"
>> 2014-04-11 18:56:18.793727 D MSqlQuery::next(DBManager1) Result: "cardid = 16"
>> 2014-04-11 18:56:18.793735 D MSqlQuery::next(DBManager1) Result: "cardid = 17"
>> 2014-04-11 18:56:18.793744 D MSqlQuery::next(DBManager1) Result: "cardid = 18"
>> 2014-04-11 18:56:18.793870 I MythSocket(18bd820:17): write -> 17
>> 35 QUERY_REMOTEENCODER 8[]:[]GET_STATE
>> 2014-04-11 18:56:18.795022 I MythSocket(18bd820:17): read <- 17 1 0
>> 2014-04-11 18:56:18.795150 I MythSocket(18bd820:17): write -> 17
>> 36 QUERY_REMOTEENCODER 14[]:[]GET_STATE
>> 2014-04-11 18:56:18.795512 I MythSocket(18bd820:17): read <- 17 1
>>
>> Full log is here: http://pastebin.com/MZMwLSgr
>> More than happy to work on patch if it would help...
> Isn't the SBE running the commercialcheck for the recording on the
> MBE.
It will delegate that to the least busy backend allowed to run that. I
found out because my frontend having a backend running for storage got
slow on occasion because of that. So I disabled that allowance.
Tot mails,
Hika mailto:hikavdh at gmail.com
"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"
De lerende Mens
More information about the mythtv-users
mailing list