diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-12-15 11:27:08 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-12-15 11:29:15 +0200 |
commit | 98c9fbfa215242f2930990a0a80b9c5642d23e58 (patch) | |
tree | 891140935e175dc15764eb6ec134bd3d6c7b07d2 /storage/xtradb | |
parent | e9b4a041af5122dffd59012493c565e6e3db2664 (diff) | |
download | mariadb-git-98c9fbfa215242f2930990a0a80b9c5642d23e58.tar.gz |
MDEV-8297: information_schema.innodb_sys_tablestats.modified_counter doesn't change on UPDATE
Update modified-counter also if update effects non-indexed columns.
Diffstat (limited to 'storage/xtradb')
-rw-r--r-- | storage/xtradb/row/row0mysql.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/xtradb/row/row0mysql.cc b/storage/xtradb/row/row0mysql.cc index e7d1e9193fa..6bb5a61b635 100644 --- a/storage/xtradb/row/row0mysql.cc +++ b/storage/xtradb/row/row0mysql.cc @@ -1870,6 +1870,12 @@ run_again: columns would not affect statistics. */ if (node->is_delete || !(node->cmpl_info & UPD_NODE_NO_ORD_CHANGE)) { row_update_statistics_if_needed(prebuilt->table); + } else { + /* Update the table modification counter even when + non-indexed columns change if statistics is initialized. */ + if (prebuilt->table->stat_initialized) { + prebuilt->table->stat_modified_counter++; + } } trx->op_info = ""; |