YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense alongwiththisprogram;ifnot,writetotheFreeSoftware
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
if (table_version)
{ /* Read the table version (if it is a 'new' frm file) */ if (header[64] == EXTRA2_TABLEDEF_VERSION && header[65] == MY_UUID_SIZE) if ((table_version->str= (uchar*) thd->memdup(header + 66, MY_UUID_SIZE)))
table_version->length= MY_UUID_SIZE;
}
/* cannot use ha_resolve_by_legacy_type without a THD */ if (thd && dbt < DB_TYPE_FIRST_DYNAMIC)
{
handlerton *ht= ha_resolve_by_legacy_type(thd, (legacy_db_type) dbt); if (ht)
{ if (engine_name)
*engine_name= hton2plugin[ht->slot]->name; goto err;
}
}
/* read the true engine name */ if (engine_name)
{
MY_STAT state;
uchar *frm_image= 0;
uint n_length;
if (mysql_file_fstat(file, &state, MYF(MY_WME))) goto err;
if (mysql_file_seek(file, 0, SEEK_SET, MYF(MY_WME))) goto err;
if (read_string(file, &frm_image, (size_t)state.st_size)) goto err;
/* The test for !engine_name->length is only true for partition engine */ if (!engine_name->length && (n_length= uint4korr(frm_image+55)))
{
uint record_offset= uint2korr(frm_image+6)+
((uint2korr(frm_image+14) == 0xffff ?
uint4korr(frm_image+47) : uint2korr(frm_image+14)));
uint reclength= uint2korr(frm_image+16);
/* There should be a exclusive metadata lock on the table. */
DBUG_ASSERT(thd->mdl_context.is_lock_owner(MDL_key::TABLE, db, table_name,
MDL_EXCLUSIVE));
create_info.init();
build_table_filename(path_buf, sizeof(path_buf) - 1,
db, table_name, "", 0); /* Attempt to reconstruct the table. */
DBUG_RETURN(ha_create_table(thd, path_buf, db, table_name, &create_info, 0, 0));
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.