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

type storage engine.

Authored by: Kentoku Shiba
This commit is contained in:
Jan Lindström 2015-03-12 18:37:32 +02:00
parent ed04c40b01
commit 702fdc52fa
2 changed files with 10 additions and 0 deletions

View file

@ -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 = "";

View file

@ -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