MCPcopy Create free account
hub / github.com/MariaDB/server / update_stat

Method update_stat

sql/sql_statistics.cc:702–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700 */
701
702 bool update_stat()
703 {
704 if (find_stat())
705 {
706 bool res;
707 store_record_for_update();
708 store_stat_fields();
709 res= update_record() != 0;
710 DBUG_ASSERT(res == 0);
711 return res;
712 }
713 else
714 {
715 int err;
716 store_stat_fields();
717 if ((err= stat_file->ha_write_row(record[0])))
718 {
719 DBUG_ASSERT(0);
720 return TRUE;
721 }
722 }
723 return FALSE;
724 }
725
726 /**
727 @brief

Callers 1

Calls 2

ha_write_rowMethod · 0.80
update_recordFunction · 0.50

Tested by

no test coverage detected