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
e8963afa
Commit
e8963afa
authored
Feb 11, 2010
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Introduce thr_is_recv().
parent
62982447
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
include/que0que.h
include/que0que.h
+11
-0
include/que0que.ic
include/que0que.ic
+14
-0
row/row0umod.c
row/row0umod.c
+1
-1
No files found.
include/que0que.h
View file @
e8963afa
...
@@ -30,6 +30,7 @@ Created 5/27/1996 Heikki Tuuri
...
@@ -30,6 +30,7 @@ Created 5/27/1996 Heikki Tuuri
#include "data0data.h"
#include "data0data.h"
#include "dict0types.h"
#include "dict0types.h"
#include "trx0trx.h"
#include "trx0trx.h"
#include "trx0roll.h"
#include "srv0srv.h"
#include "srv0srv.h"
#include "usr0types.h"
#include "usr0types.h"
#include "que0types.h"
#include "que0types.h"
...
@@ -215,6 +216,16 @@ trx_t*
...
@@ -215,6 +216,16 @@ trx_t*
thr_get_trx
(
thr_get_trx
(
/*========*/
/*========*/
que_thr_t
*
thr
);
/*!< in: query thread */
que_thr_t
*
thr
);
/*!< in: query thread */
/*******************************************************************//**
Determines if this thread is rolling back an incomplete transaction
in crash recovery.
@return TRUE if thr is rolling back an incomplete transaction in crash
recovery */
UNIV_INLINE
ibool
thr_is_recv
(
/*========*/
const
que_thr_t
*
thr
);
/*!< in: query thread */
/***********************************************************************//**
/***********************************************************************//**
Gets the type of a graph node. */
Gets the type of a graph node. */
UNIV_INLINE
UNIV_INLINE
...
...
include/que0que.ic
View file @
e8963afa
...
@@ -38,6 +38,20 @@ thr_get_trx(
...
@@ -38,6 +38,20 @@ thr_get_trx(
return(thr->graph->trx);
return(thr->graph->trx);
}
}
/*******************************************************************//**
Determines if this thread is rolling back an incomplete transaction
in crash recovery.
@return TRUE if thr is rolling back an incomplete transaction in crash
recovery */
UNIV_INLINE
ibool
thr_is_recv(
/*========*/
const que_thr_t* thr) /*!< in: query thread */
{
return(trx_is_recv(thr->graph->trx));
}
/***********************************************************************//**
/***********************************************************************//**
Gets the first thr in a fork. */
Gets the first thr in a fork. */
UNIV_INLINE
UNIV_INLINE
...
...
row/row0umod.c
View file @
e8963afa
...
@@ -559,7 +559,7 @@ row_undo_mod_upd_del_sec(
...
@@ -559,7 +559,7 @@ row_undo_mod_upd_del_sec(
does not exist. However, this situation may
does not exist. However, this situation may
only occur during the rollback of incomplete
only occur during the rollback of incomplete
transactions. */
transactions. */
ut_a
(
t
rx_is_recv
(
thr_get_trx
(
thr
)
));
ut_a
(
t
hr_is_recv
(
thr
));
}
else
{
}
else
{
err
=
row_undo_mod_del_mark_or_remove_sec
(
err
=
row_undo_mod_del_mark_or_remove_sec
(
node
,
thr
,
index
,
entry
);
node
,
thr
,
index
,
entry
);
...
...
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