Clarify .frm field parsing comments: use C-style block comments, reposition loop comment, and add end marker

This commit is contained in:
Krishna Teja 2025-03-31 21:46:50 -05:00 committed by Daniel Black
parent 1b95e46524
commit 36dfe08672

View File

@ -2475,6 +2475,9 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
extra2.field_data_type_info))
goto err;
/*
Column definitions extraction begins here.
*/
for (i=0 ; i < share->fields; i++, strpos+=field_pack_length, field_ptr++)
{
uint interval_nr= 0, recpos;
@ -2844,6 +2847,10 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
share->default_fields++;
}
}
/*
Column definitions extraction ends here.
*/
*field_ptr=0; // End marker
/* Sanity checks: */
DBUG_ASSERT(share->fields>=share->stored_fields);