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
50eab8cf
Commit
50eab8cf
authored
Jul 01, 2005
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trx0trx.ic, trx0trx.h:
Fix bug in the Bug #3300 bug fix
parent
4fe03b70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
innobase/include/trx0trx.h
innobase/include/trx0trx.h
+4
-4
innobase/include/trx0trx.ic
innobase/include/trx0trx.ic
+13
-5
No files found.
innobase/include/trx0trx.h
View file @
50eab8cf
...
...
@@ -29,16 +29,16 @@ trx_reset_new_rec_lock_info(
/*========================*/
trx_t
*
trx
);
/* in: transaction struct */
/*****************************************************************
Registers that we have set a new record lock on an index.
This can only b
e
called twice after calling trx_reset_new_rec_lock_info(), since we only have
space to store 2 indexes!
*/
Registers that we have set a new record lock on an index.
We only hav
e
space to store 2 indexes! If this is called more than twice after
trx_reset_new_rec_lock_info(), then this function does nothing.
*/
UNIV_INLINE
void
trx_register_new_rec_lock
(
/*======================*/
trx_t
*
trx
,
/* in: transaction struct */
dict_index_t
*
index
);
/* in: trx sets a new record lock on this
index*/
index
*/
/*****************************************************************
Checks if trx has set a new record lock on an index. */
UNIV_INLINE
...
...
innobase/include/trx0trx.ic
View file @
50eab8cf
...
...
@@ -52,16 +52,16 @@ trx_reset_new_rec_lock_info(
}
/*****************************************************************
Registers that we have set a new record lock on an index.
This can only b
e
called twice after calling trx_reset_new_rec_lock_info(), since we only have
space to store 2 indexes!
*/
Registers that we have set a new record lock on an index.
We only hav
e
space to store 2 indexes! If this is called more than twice after
trx_reset_new_rec_lock_info(), then this function does nothing.
*/
UNIV_INLINE
void
trx_register_new_rec_lock(
/*======================*/
trx_t* trx, /* in: transaction struct */
dict_index_t* index) /* in: trx sets a new record lock on this
index*/
index
*/
{
if (trx->new_rec_locks[0] == NULL) {
trx->new_rec_locks[0] = index;
...
...
@@ -69,7 +69,15 @@ trx_register_new_rec_lock(
return;
}
ut_a(trx->new_rec_locks[1] == NULL);
if (trx->new_rec_locks[0] == index) {
return;
}
if (trx->new_rec_locks[1] != NULL) {
return;
}
trx->new_rec_locks[1] = index;
}
...
...
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