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

Function fill_collation_statistics

plugin/feedback/utils.cc:432–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432int fill_collation_statistics(THD *thd, TABLE_LIST *tables)
433{
434 TABLE *table= tables->table;
435 for (uint id= 1; id < MY_ALL_CHARSETS_SIZE; id++)
436 {
437 ulonglong count;
438 if (my_collation_is_known_id(id) &&
439 (count= my_collation_statistics_get_use_count(id)))
440 {
441 char name[MY_CS_COLLATION_NAME_SIZE + 32];
442 size_t namelen= my_snprintf(name, sizeof(name),
443 "Collation used %s",
444 get_charset_name(id));
445 INSERT2(name, namelen, (count, UNSIGNED));
446 }
447 }
448 return 0;
449};
450} // namespace feedback

Callers 1

fill_feedbackFunction · 0.85

Calls 4

my_collation_is_known_idFunction · 0.85
my_snprintfFunction · 0.85
get_charset_nameFunction · 0.85

Tested by

no test coverage detected