mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Fix InnoDB/XtraDB warnings by GCC 8.2.0
This commit is contained in:
parent
8bdd125067
commit
d17e9a02c4
10 changed files with 48 additions and 60 deletions
|
|
@ -1458,19 +1458,16 @@ i_s_cmp_fill_low(
|
|||
clear it. We could introduce mutex protection, but it
|
||||
could cause a measureable performance hit in
|
||||
page0zip.cc. */
|
||||
table->field[1]->store(
|
||||
static_cast<double>(zip_stat->compressed));
|
||||
table->field[2]->store(
|
||||
static_cast<double>(zip_stat->compressed_ok));
|
||||
table->field[3]->store(
|
||||
static_cast<double>(zip_stat->compressed_usec / 1000000));
|
||||
table->field[4]->store(
|
||||
static_cast<double>(zip_stat->decompressed));
|
||||
table->field[5]->store(
|
||||
static_cast<double>(zip_stat->decompressed_usec / 1000000));
|
||||
table->field[1]->store(zip_stat->compressed, true);
|
||||
table->field[2]->store(zip_stat->compressed_ok, true);
|
||||
table->field[3]->store(zip_stat->compressed_usec / 1000000,
|
||||
true);
|
||||
table->field[4]->store(zip_stat->decompressed, true);
|
||||
table->field[5]->store(zip_stat->decompressed_usec / 1000000,
|
||||
true);
|
||||
|
||||
if (reset) {
|
||||
memset(zip_stat, 0, sizeof *zip_stat);
|
||||
new (zip_stat) page_zip_stat_t();
|
||||
}
|
||||
|
||||
if (schema_table_store_record(thd, table)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue