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
0dc19044
Commit
0dc19044
authored
Nov 08, 2011
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1 to mysql-5.5.
parents
941a6640
77eb01b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
40 deletions
+2
-40
storage/innobase/btr/btr0pcur.c
storage/innobase/btr/btr0pcur.c
+2
-0
storage/innobase/include/btr0pcur.h
storage/innobase/include/btr0pcur.h
+0
-8
storage/innobase/include/btr0pcur.ic
storage/innobase/include/btr0pcur.ic
+0
-32
No files found.
storage/innobase/btr/btr0pcur.c
View file @
0dc19044
...
@@ -247,6 +247,8 @@ btr_pcur_restore_position_func(
...
@@ -247,6 +247,8 @@ btr_pcur_restore_position_func(
cursor
->
rel_pos
==
BTR_PCUR_BEFORE_FIRST_IN_TREE
,
cursor
->
rel_pos
==
BTR_PCUR_BEFORE_FIRST_IN_TREE
,
index
,
latch_mode
,
btr_pcur_get_btr_cur
(
cursor
),
mtr
);
index
,
latch_mode
,
btr_pcur_get_btr_cur
(
cursor
),
mtr
);
cursor
->
latch_mode
=
latch_mode
;
cursor
->
pos_state
=
BTR_PCUR_IS_POSITIONED
;
cursor
->
block_when_stored
=
btr_pcur_get_block
(
cursor
);
cursor
->
block_when_stored
=
btr_pcur_get_block
(
cursor
);
return
(
FALSE
);
return
(
FALSE
);
...
...
storage/innobase/include/btr0pcur.h
View file @
0dc19044
...
@@ -263,14 +263,6 @@ btr_pcur_commit_specify_mtr(
...
@@ -263,14 +263,6 @@ btr_pcur_commit_specify_mtr(
/*========================*/
/*========================*/
btr_pcur_t
*
pcur
,
/*!< in: persistent cursor */
btr_pcur_t
*
pcur
,
/*!< in: persistent cursor */
mtr_t
*
mtr
);
/*!< in: mtr to commit */
mtr_t
*
mtr
);
/*!< in: mtr to commit */
/**************************************************************//**
Tests if a cursor is detached: that is the latch mode is BTR_NO_LATCHES.
@return TRUE if detached */
UNIV_INLINE
ibool
btr_pcur_is_detached
(
/*=================*/
btr_pcur_t
*
pcur
);
/*!< in: persistent cursor */
/*********************************************************//**
/*********************************************************//**
Moves the persistent cursor to the next record in the tree. If no records are
Moves the persistent cursor to the next record in the tree. If no records are
left, the cursor stays 'after last in tree'.
left, the cursor stays 'after last in tree'.
...
...
storage/innobase/include/btr0pcur.ic
View file @
0dc19044
...
@@ -388,38 +388,6 @@ btr_pcur_commit_specify_mtr(
...
@@ -388,38 +388,6 @@ btr_pcur_commit_specify_mtr(
pcur->pos_state = BTR_PCUR_WAS_POSITIONED;
pcur->pos_state = BTR_PCUR_WAS_POSITIONED;
}
}
/**************************************************************//**
Sets the pcur latch mode to BTR_NO_LATCHES. */
UNIV_INLINE
void
btr_pcur_detach(
/*============*/
btr_pcur_t* pcur) /*!< in: persistent cursor */
{
ut_a(pcur->pos_state == BTR_PCUR_IS_POSITIONED);
pcur->latch_mode = BTR_NO_LATCHES;
pcur->pos_state = BTR_PCUR_WAS_POSITIONED;
}
/**************************************************************//**
Tests if a cursor is detached: that is the latch mode is BTR_NO_LATCHES.
@return TRUE if detached */
UNIV_INLINE
ibool
btr_pcur_is_detached(
/*=================*/
btr_pcur_t* pcur) /*!< in: persistent cursor */
{
if (pcur->latch_mode == BTR_NO_LATCHES) {
return(TRUE);
}
return(FALSE);
}
/**************************************************************//**
/**************************************************************//**
Sets the old_rec_buf field to NULL. */
Sets the old_rec_buf field to NULL. */
UNIV_INLINE
UNIV_INLINE
...
...
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