Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
702fdc52
Commit
702fdc52
authored
Mar 12, 2015
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-7714: Make possible to get innodb internal primary key for wrapper
type storage engine. Authored by: Kentoku Shiba
parent
ed04c40b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
storage/innobase/row/row0mysql.cc
storage/innobase/row/row0mysql.cc
+5
-0
storage/xtradb/row/row0mysql.cc
storage/xtradb/row/row0mysql.cc
+5
-0
No files found.
storage/innobase/row/row0mysql.cc
View file @
702fdc52
...
...
@@ -1461,6 +1461,11 @@ row_insert_for_mysql(
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
=
""
;
...
...
storage/xtradb/row/row0mysql.cc
View file @
702fdc52
...
...
@@ -1455,6 +1455,11 @@ row_insert_for_mysql(
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment