Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/google/protobuf/descriptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,11 @@ bool DescriptorPool::Tables::AddFile(const FileDescriptor* file) {
}
}

void FileDescriptorTables::FinalizeTables() {}
void FileDescriptorTables::FinalizeTables() {
symbols_by_parent_.rehash(0);
fields_by_number_.rehash(0);
enum_values_by_number_.rehash(0);
}

bool FileDescriptorTables::AddFieldByNumber(FieldDescriptor* field) {
// Skip fields that are at the start of the sequence.
Expand Down
Loading