From 156c55e27d7a8fdf9c26e30dcbf09e97231efd68 Mon Sep 17 00:00:00 2001 From: Tim Barron Date: Tue, 12 Apr 2022 14:43:45 -0700 Subject: Sync from upstream. Descriptions: ====================================================================== Add some additional logging that will help diagnose b/218413237 ====================================================================== Mark VerbatimTokenizer::ResetToTokenStartingAfter as 'override'. ====================================================================== Support dump function for SchemaStore ====================================================================== Bug: 218413237 Change-Id: I9efd1dd388cd510df15989c84a8577d4ba56ab3c --- proto/icing/proto/debug.proto | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'proto') diff --git a/proto/icing/proto/debug.proto b/proto/icing/proto/debug.proto index 3f07539..504ae43 100644 --- a/proto/icing/proto/debug.proto +++ b/proto/icing/proto/debug.proto @@ -16,6 +16,7 @@ syntax = "proto2"; package icing.lib; +import "icing/proto/schema.proto"; import "icing/proto/status.proto"; import "icing/proto/storage.proto"; @@ -90,12 +91,26 @@ message DocumentDebugInfoProto { } // Next tag: 3 +message SchemaDebugInfoProto { + // Copy of the SchemaProto if it has been set in the schema store. + // Modifying this does not affect the Schema that IcingSearchEngine holds. + optional SchemaProto schema = 1; + + // The most recent checksum of the schema store, by calling + // SchemaStore::ComputeChecksum(). + optional uint32 crc = 2; +} + +// Next tag: 4 message DebugInfoProto { // Debug information of the index. optional IndexDebugInfoProto index_info = 1; // Debug information of the document store. optional DocumentDebugInfoProto document_info = 2; + + // Debug information of the schema store. + optional SchemaDebugInfoProto schema_info = 3; } // Next tag: 3 -- cgit v1.2.3