From e23da09e94f8cfcc48db7233fb63d21b2f57aa2d Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 11 Nov 2023 11:25:50 -0800 Subject: [PATCH] [glass] Datalogreader: Filter only by data type --- glass/src/lib/native/cpp/support/DataLogReaderThread.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/glass/src/lib/native/cpp/support/DataLogReaderThread.cpp b/glass/src/lib/native/cpp/support/DataLogReaderThread.cpp index 5087146d51b..4c2bb6159de 100644 --- a/glass/src/lib/native/cpp/support/DataLogReaderThread.cpp +++ b/glass/src/lib/native/cpp/support/DataLogReaderThread.cpp @@ -41,10 +41,8 @@ void DataLogReaderThread::ReadMain() { it->second.ranges.emplace_back(recordIt, recordEnd); } entryPtr = &it->second; - if ((wpi::starts_with(data.name, "/.schema/struct:") && - data.type == "structschema") || - (wpi::starts_with(data.name, "/.schema/proto:") && - data.type == "proto:FileDescriptorProto")) { + if (data.type == "structschema" || + data.type == "proto:FileDescriptorProto") { schemaEntries.try_emplace(data.entry, entryPtr, std::span{}); }