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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bd00b698
Commit
bd00b698
authored
Sep 04, 2005
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_innodb.cc:
Better comments about auto-inc and SHOW TABLE STATUS
parent
7249c12a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
sql/ha_innodb.cc
sql/ha_innodb.cc
+5
-3
No files found.
sql/ha_innodb.cc
View file @
bd00b698
...
@@ -5543,7 +5543,7 @@ ha_innobase::info(
...
@@ -5543,7 +5543,7 @@ ha_innobase::info(
/* The following function call can the first time fail in
/* The following function call can the first time fail in
a lock wait timeout error because it reserves the auto-inc
a lock wait timeout error because it reserves the auto-inc
lock on the table. If it fails, then someone
has already inited
lock on the table. If it fails, then someone
is already initing
the auto-inc counter, and the second call is guaranteed to
the auto-inc counter, and the second call is guaranteed to
succeed. */
succeed. */
...
@@ -6893,9 +6893,11 @@ func_exit:
...
@@ -6893,9 +6893,11 @@ func_exit:
func_exit_early:
func_exit_early:
/* Since MySQL does not seem to call autocommit after SHOW TABLE
/* Since MySQL does not seem to call autocommit after SHOW TABLE
STATUS (even if we would register the trx here), we
must
commit our
STATUS (even if we would register the trx here), we commit our
transaction here if it was started here. This is to eliminate a
transaction here if it was started here. This is to eliminate a
dangling transaction. */
dangling transaction. If the user had AUTOCOMMIT=0, then SHOW
TABLE STATUS does leave a dangling transaction if the user does not
himself call COMMIT. */
if
(
trx_was_not_started
)
{
if
(
trx_was_not_started
)
{
...
...
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