Hi, ah so the update hook is only executed, when the master gets the data update via UDP. In my testsetup I updated the master data directly via Unix socket on the master.
Regards, Dominik Am 4. Oktober 2015 18:17:56 MESZ, schrieb Sven Eckelmann <[email protected]>: >On Sunday 04 October 2015 16:23:28 Dominik Heidler wrote: >> Hi, >> >> I tried to use the alfred update-command but it seems that the >> update-command is only triggered when data is purged but not when new >> data is received. >> >> The changed_data_type() method is only called from the purge_data() >method. >[...] > >Nope, see finish_alfred_push_data (when data was synced to a master >node): > > /* check that data was changed */ > if (new_entry_created || > dataset->data.header.length != data_len || > memcmp(dataset->buf, data->data, data_len) != 0) > changed_data_type(globals, data->header.type); > >It is useless on slave instances because they only pull data when it is > >required. But better ask Anatoliy because he is creator of this feature >and >the only one I know who seems to use it. > >Kind regards, > Sven
