Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 704990968
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Dec 11, 2024
1 parent 1b0b1c9 commit 2f0f123
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/google/protobuf/message_lite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2f0f123

Please sign in to comment.