From 36dfe0867276be11d9f6393f0bdd895d38d5e1ec Mon Sep 17 00:00:00 2001 From: Krishna Teja Date: Mon, 31 Mar 2025 21:46:50 -0500 Subject: [PATCH] Clarify .frm field parsing comments: use C-style block comments, reposition loop comment, and add end marker --- sql/table.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sql/table.cc b/sql/table.cc index 8cd50d1a791..55b0c722fa6 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -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);