This comment does not make sense to me.  This function does not do any calculation nor fix anything after calling *_pack.  The *_pack functions certainly compute things and adjust logrec->size, but that doesn't seem the intent of this comment here.