Handle start times before the start of a log file
We have seen log files where the start time is before any data after a
node reboots. The side effect of this is that we try to call the
startup callback at the start time, but we only officially reboot at the
first message, so we can't actually start at the start time. The world
then explodes.
Add a test reproducing it, and then fix it.
Change-Id: I7de986a6f7df0d050a0c8164827d27c799221fbf
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/events/logging/timestamp_extractor.cc b/aos/events/logging/timestamp_extractor.cc
index 0cfc19b..f7f5a40 100644
--- a/aos/events/logging/timestamp_extractor.cc
+++ b/aos/events/logging/timestamp_extractor.cc
@@ -33,6 +33,7 @@
// all the parts were sorted together and the configs match.
const Configuration *config = nullptr;
for (const LogFile &log_file : log_files) {
+ VLOG(1) << log_file;
if (config == nullptr) {
config = log_file.config.get();
} else {