this is an important bit - only mark dead hubs on directory servers. They shouldn't matter anywhere else.
This commit is contained in:
parent
2a6d7b6a07
commit
1a58777daa
@ -298,6 +298,10 @@ function channel_remove($channel_id, $local = true) {
|
|||||||
|
|
||||||
function mark_orphan_hubsxchans() {
|
function mark_orphan_hubsxchans() {
|
||||||
|
|
||||||
|
$dirmode = intval(get_config('system','directory_mode'));
|
||||||
|
if($dirmode == DIRECTORY_MODE_NORMAL)
|
||||||
|
return;
|
||||||
|
|
||||||
$r = q("update hubloc set hubloc_status = (hubloc_status | %d) where not (hubloc_status & %d)
|
$r = q("update hubloc set hubloc_status = (hubloc_status | %d) where not (hubloc_status & %d)
|
||||||
and hubloc_connected < utc_timestamp() - interval 30 day",
|
and hubloc_connected < utc_timestamp() - interval 30 day",
|
||||||
intval(HUBLOC_OFFLINE),
|
intval(HUBLOC_OFFLINE),
|
||||||
|
@ -1 +1 @@
|
|||||||
2014-05-28.689
|
2014-05-29.690
|
||||||
|
Reference in New Issue
Block a user