Don't save data for the local node when sorting
There was a bug in TimestampMapper where we were saving data to be
matched with timestamps for all local channels. This had the effect of
saving all the data forever because nothing was consuming it. There's
no need to save it, so don't.
Change-Id: I32a7458aeec768db0600df3cddd2f716067e16f1
diff --git a/aos/events/logging/logfile_utils.cc b/aos/events/logging/logfile_utils.cc
index f6772e8..59f478c 100644
--- a/aos/events/logging/logfile_utils.cc
+++ b/aos/events/logging/logfile_utils.cc
@@ -728,7 +728,8 @@
for (const Channel *channel : *config->channels()) {
node_data->channels[channel_index].delivered =
configuration::ChannelIsReadableOnNode(channel, node) &&
- configuration::ChannelIsSendableOnNode(channel, my_node);
+ configuration::ChannelIsSendableOnNode(channel, my_node) &&
+ (my_node != node);
node_data->any_delivered = node_data->any_delivered ||
node_data->channels[channel_index].delivered;
++channel_index;