/[Apache-SVN]
ViewVC logotype

Revision 665227


Jump to revision: Previous Next
Author: dreiss
Date: Tue Aug 28 20:49:17 2007 UTC (17 years, 2 months ago)
Changed paths: 15
Log Message:
Thrift: Generate structural fingerprints for thrift structs.

Summary:
We are going to write a dense protocol soon that eliminates some metadata.
To prevent version conflicts, we want each structure to have a
structural fingerprint that will change whenever the struct changes
in a way that will affect the dense protocol.
This change computes those fingerprints and puts them in
the generated C++ code.

Reviewed By: aditya, mcslee

Test Plan:
Recompiled thrift.
Thrifted DebugProtoTest with old and new compilers.
Compared output.
Also ran thrift with those "cout"s uncommented,
examined the fingerprint material,
and verified the hashes.

Revert Plan: ok


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/Makefile.am modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/main.cc modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/md5.h added
Directoryincubator/thrift/trunk/compiler/cpp/src/md5c.c added
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_base_type.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_enum.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_field.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_list.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_map.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_service.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_set.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_struct.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_type.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_typedef.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26