queue management actions. Still needs further work such as indication of last successful connection or indication that the hub was marked offline, but these are potentially expensive queries.
This commit is contained in:
@@ -175,8 +175,9 @@ function hubloc_change_primary($hubloc) {
|
||||
// The https might be alive, and the http dead.
|
||||
|
||||
function hubloc_mark_as_down($posturl) {
|
||||
$r = q("update hubloc set hubloc_status = ( hubloc_status | %d ) where hubloc_posturl = '%s'",
|
||||
intval(HUBLOC_OFFLINE)
|
||||
$r = q("update hubloc set hubloc_status = ( hubloc_status | %d ) where hubloc_callback = '%s'",
|
||||
intval(HUBLOC_OFFLINE),
|
||||
dbesc($posturl)
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user