[CRIU] [PATCH 1/3] criu: arch, x86 -- Rename registers mode

Dmitry Safonov dsafonov at virtuozzo.com
Wed Jul 13 06:42:57 PDT 2016


On 07/13/2016 04:41 PM, Cyrill Gorcunov wrote:
> On Wed, Jul 13, 2016 at 04:34:37PM +0300, Dmitry Safonov wrote:
>>
>> It looks like, Language Guide even advices to rename fields if they are
>> obsolete:
>>
>> "Non-required fields can be removed, as long as the tag number is not used
>> again in your updated message type. You may want to rename the field
>> instead, perhaps adding the prefix "OBSOLETE_", or make the tag reserved, so
>> that future users of your .proto can't accidentally reuse the number."
>> https://developers.google.com/protocol-buffers/docs/proto
>
> The only important thing in this protocol is the wire format,
> ie binary format, the names are needed for user-space applications
> only (like prorobuf-c, which generates wrapping for each field).
>

That's what I meant ;)
If you can rename field to OBSOLETE_something while keeping backward
compatibility, nothing prevents you to rename it to anything else.


More information about the CRIU mailing list