Commit 702fdc52 authored by Jan Lindström's avatar Jan Lindström

MDEV-7714: Make possible to get innodb internal primary key for wrapper

type storage engine.

Authored by: Kentoku Shiba
parent ed04c40b
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment