From 2f0f123517eb814cdfa72e3d3e5aee3e34f76f4a Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 10 Dec 2024 23:52:01 -0800 Subject: [PATCH] Internal change PiperOrigin-RevId: 704990968 --- src/google/protobuf/message_lite.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/google/protobuf/message_lite.cc b/src/google/protobuf/message_lite.cc index efaad9d811951..706baca5c7026 100644 --- a/src/google/protobuf/message_lite.cc +++ b/src/google/protobuf/message_lite.cc @@ -502,6 +502,11 @@ bool MessageLite::SerializeToCodedStream(io::CodedOutputStream* output) const { bool MessageLite::SerializePartialToCodedStream( io::CodedOutputStream* output) const { const size_t size = ByteSizeLong(); // Force size to be cached. + if (GetTypeName() == "gfm_producer.proto.UpdateOpList") { + ABSL_LOG(DO_NOT_SUBMIT) + << "dl_log: UpdateOpList SerializePartialToCodedStream ByteSizeLong: " + << size; + } if (size > INT_MAX) { ABSL_LOG(ERROR) << GetTypeName() << " exceeded maximum protobuf size of 2GB: " << size;