From: Sven Eckelmann <sven@narfation.org>
To: Anatoliy Lapitskiy <anatoliy.lapitskiy@gmail.com>,
Dominik Heidler <dominik@heidler.eu>
Cc: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] Alfred update-command
Date: Sun, 04 Oct 2015 18:17:56 +0200 [thread overview]
Message-ID: <5450614.1BWUbN25GJ@sven-edge> (raw)
In-Reply-To: <56113660.8080506@heidler.eu>
[-- Attachment #1: Type: text/plain, Size: 817 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-10-04 16:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-04 14:23 [B.A.T.M.A.N.] Alfred update-command Dominik Heidler
2015-10-04 16:17 ` Sven Eckelmann [this message]
2015-10-04 16:22 ` Dominik Heidler
2015-10-04 16:27 ` Sven Eckelmann
2015-10-04 16:30 ` Dominik Heidler
2015-10-04 16:46 ` Sven Eckelmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5450614.1BWUbN25GJ@sven-edge \
--to=sven@narfation.org \
--cc=anatoliy.lapitskiy@gmail.com \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=dominik@heidler.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox