mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
MDEV-7714: Make possible to get innodb internal primary key for wrapper
type storage engine. Authored by: Kentoku Shiba
This commit is contained in:
parent
ed04c40b01
commit
702fdc52fa
2 changed files with 10 additions and 0 deletions
|
@ -1461,6 +1461,11 @@ error_exit:
|
|||
with a latch. */
|
||||
dict_table_n_rows_inc(table);
|
||||
|
||||
if (prebuilt->clust_index_was_generated) {
|
||||
/* set row id to prebuilt */
|
||||
ut_memcpy(prebuilt->row_id, node->row_id_buf, DATA_ROW_ID_LEN);
|
||||
}
|
||||
|
||||
row_update_statistics_if_needed(table);
|
||||
trx->op_info = "";
|
||||
|
||||
|
|
|
@ -1455,6 +1455,11 @@ error_exit:
|
|||
srv_stats.n_rows_inserted.add((size_t)trx->id, 1);
|
||||
}
|
||||
|
||||
if (prebuilt->clust_index_was_generated) {
|
||||
/* set row id to prebuilt */
|
||||
ut_memcpy(prebuilt->row_id, node->row_id_buf, DATA_ROW_ID_LEN);
|
||||
}
|
||||
|
||||
/* Not protected by dict_table_stats_lock() for performance
|
||||
reasons, we would rather get garbage in stat_n_rows (which is
|
||||
just an estimate anyway) than protecting the following code
|
||||
|
|
Loading…
Reference in a new issue