Record densify bug
I think I've found bug in file record_datatype.cxx.
Datatype_uptr Record_datatype::densify() const
{
long displacement = 0;
vector<Record_datatype::Member> densified_members;
for (auto&& member : m_members) {
densified_members.emplace_back(displacement, member.type().densify(), member.name());
displacement += densified_members.back().type().datasize();
}
return unique_ptr<Record_datatype> {new Record_datatype{move(densified_members), m_buffersize}};
}
We are returning densified record datatype, but size of the new record is m_buffersize
, shouldn't it be m_datasize
?