Skip to content

Commit

Permalink
[glass] Datalogreader: Filter only by data type
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Nov 11, 2023
1 parent e81a7b0 commit e23da09
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions glass/src/lib/native/cpp/support/DataLogReaderThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const uint8_t>{});
}
Expand Down

0 comments on commit e23da09

Please sign in to comment.