For background, I'm generating to C++, using thrift version 0.9.3, on RHEL7. Recently added a new function to an existing thrift file. When generating the cpp files from thrift and diffing the newly generated ones to the existing older ones, I noticed that the newer ones had changed parts of the code, that to me, didn't make sense to change (ie no new implementation, just variables name changes to existing code). Thought process was it probably had to do with the new function. So to convince myself it was just because of the new function, I generated the files again, without the function (essentially using the previous version of thrift file). Again, the changes remained the same.
To clarify, theres a piece of code like this in the existing cpp files:
uint32_t _size79;
::apache::thrift::protocol::TType _etype82;
xfer += iprot->readListBegin(_etype82, _size79);
(*(this->success)).resize(_size79);
and the newer results (with or without the new function) would change the variables to this:
uint32_t _size86;
::apache::thrift::protocol::TType _etype89;
xfer += iprot->readListBegin(_etype89, _size86);
(*(this->success)).resize(_size86);
Now I know you shouldn't try to nit pick through what thrift generates, but what might cause this to happen? I've gone through the white paper, and a few other places to try and figure out why random changes like this would happen, but couldn't figure out much. I want to be able to say, "this is okay, this is expected sometimes because of this certain process...". Part of me feels like these variables should have stayed consistent given that they came from the same thrift file, same thrift compiler version, though generated a few months apart.
Thanks. Hopefully I'm just missing a concept.