mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 19:41:47 +01:00
branches/zip: Add the column "free" to INNODB_ZIP and INNODB_ZIP_RESET
to display the external fragmentation within the buddy allocator.
This commit is contained in:
parent
2d88188caf
commit
287e5da3ef
1 changed files with 11 additions and 0 deletions
|
@ -1033,6 +1033,14 @@ static ST_FIELD_INFO i_s_zip_fields_info[] =
|
|||
STRUCT_FLD(old_name, "Currently in Use"),
|
||||
STRUCT_FLD(open_method, SKIP_OPEN_TABLE)},
|
||||
|
||||
{STRUCT_FLD(field_name, "free"),
|
||||
STRUCT_FLD(field_length, 21),
|
||||
STRUCT_FLD(field_type, MYSQL_TYPE_LONG),
|
||||
STRUCT_FLD(value, 0),
|
||||
STRUCT_FLD(field_flags, 0),
|
||||
STRUCT_FLD(old_name, "Currently Available"),
|
||||
STRUCT_FLD(open_method, SKIP_OPEN_TABLE)},
|
||||
|
||||
END_OF_ST_FIELD_INFO
|
||||
};
|
||||
|
||||
|
@ -1096,6 +1104,9 @@ i_s_zip_fill_low(
|
|||
table->field[4]->store(0);
|
||||
}
|
||||
table->field[5]->store(buf_buddy_used[x]);
|
||||
table->field[6]->store(UNIV_LIKELY(x < BUF_BUDDY_SIZES)
|
||||
? UT_LIST_GET_LEN(buf_pool->zip_free[x])
|
||||
: 0);
|
||||
|
||||
if (schema_table_store_record(thd, table)) {
|
||||
status = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue