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
7a524cee
Commit
7a524cee
authored
Oct 19, 2013
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-push fix for bug17565888.
parent
a91fcaf4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
storage/innobase/btr/btr0pcur.c
storage/innobase/btr/btr0pcur.c
+1
-1
storage/innobase/include/btr0pcur.ic
storage/innobase/include/btr0pcur.ic
+3
-6
No files found.
storage/innobase/btr/btr0pcur.c
View file @
7a524cee
...
@@ -270,6 +270,7 @@ btr_pcur_restore_position_func(
...
@@ -270,6 +270,7 @@ btr_pcur_restore_position_func(
cursor
->
block_when_stored
,
cursor
->
block_when_stored
,
cursor
->
modify_clock
,
cursor
->
modify_clock
,
file
,
line
,
mtr
))
{
file
,
line
,
mtr
))
{
cursor
->
pos_state
=
BTR_PCUR_IS_POSITIONED
;
buf_block_dbg_add_level
(
buf_block_dbg_add_level
(
btr_pcur_get_block
(
cursor
),
btr_pcur_get_block
(
cursor
),
...
@@ -283,7 +284,6 @@ btr_pcur_restore_position_func(
...
@@ -283,7 +284,6 @@ btr_pcur_restore_position_func(
const
ulint
*
offsets2
;
const
ulint
*
offsets2
;
#endif
/* UNIV_DEBUG */
#endif
/* UNIV_DEBUG */
cursor
->
latch_mode
=
latch_mode
;
cursor
->
latch_mode
=
latch_mode
;
cursor
->
pos_state
=
BTR_PCUR_IS_POSITIONED
;
#ifdef UNIV_DEBUG
#ifdef UNIV_DEBUG
rec
=
btr_pcur_get_rec
(
cursor
);
rec
=
btr_pcur_get_rec
(
cursor
);
...
...
storage/innobase/include/btr0pcur.ic
View file @
7a524cee
...
@@ -91,8 +91,7 @@ btr_pcur_get_block(
...
@@ -91,8 +91,7 @@ btr_pcur_get_block(
/*===============*/
/*===============*/
const btr_pcur_t* cursor) /*!< in: persistent cursor */
const btr_pcur_t* cursor) /*!< in: persistent cursor */
{
{
ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC
ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED);
|| cursor->pos_state == BTR_PCUR_IS_POSITIONED);
return(btr_cur_get_block(btr_pcur_get_btr_cur(cursor)));
return(btr_cur_get_block(btr_pcur_get_btr_cur(cursor)));
}
}
...
@@ -165,8 +164,7 @@ btr_pcur_is_after_last_on_page(
...
@@ -165,8 +164,7 @@ btr_pcur_is_after_last_on_page(
/*===========================*/
/*===========================*/
const btr_pcur_t* cursor) /*!< in: persistent cursor */
const btr_pcur_t* cursor) /*!< in: persistent cursor */
{
{
ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC
ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED);
|| cursor->pos_state == BTR_PCUR_IS_POSITIONED);
ut_ad(cursor->latch_mode != BTR_NO_LATCHES);
ut_ad(cursor->latch_mode != BTR_NO_LATCHES);
return(page_cur_is_after_last(btr_pcur_get_page_cur(cursor)));
return(page_cur_is_after_last(btr_pcur_get_page_cur(cursor)));
...
@@ -311,8 +309,7 @@ btr_pcur_move_to_next_user_rec(
...
@@ -311,8 +309,7 @@ btr_pcur_move_to_next_user_rec(
function may release the page latch */
function may release the page latch */
mtr_t* mtr) /*!< in: mtr */
mtr_t* mtr) /*!< in: mtr */
{
{
ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED_OPTIMISTIC
ut_ad(cursor->pos_state == BTR_PCUR_IS_POSITIONED);
|| cursor->pos_state == BTR_PCUR_IS_POSITIONED);
ut_ad(cursor->latch_mode != BTR_NO_LATCHES);
ut_ad(cursor->latch_mode != BTR_NO_LATCHES);
cursor->old_stored = BTR_PCUR_OLD_NOT_STORED;
cursor->old_stored = BTR_PCUR_OLD_NOT_STORED;
loop:
loop:
...
...
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