if a hubloc primary change results in an xchan primary change, create a directory update packet.
This commit is contained in:
parent
0057612a9f
commit
903f7e73fb
@ -1851,7 +1851,11 @@ function sync_locations($sender,$arr,$absolute = false) {
|
||||
}
|
||||
elseif($absolute) {
|
||||
// Absolute sync - make sure the current primary is correctly reflected in the xchan
|
||||
hubloc_change_primary($r[0]);
|
||||
$pr = hubloc_change_primary($r[0]);
|
||||
if($pr) {
|
||||
$what .= 'xchan_primary';
|
||||
$changed = true;
|
||||
}
|
||||
}
|
||||
if((($r[0]['hubloc_flags'] & HUBLOC_FLAGS_DELETED) && (! $location['deleted']))
|
||||
|| ((! ($r[0]['hubloc_flags'] & HUBLOC_FLAGS_DELETED)) && ($location['deleted']))) {
|
||||
|
Reference in New Issue
Block a user