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
6d483cf3
Commit
6d483cf3
authored
Oct 28, 2013
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-push fix for bug#17565888/bug#14621190
parent
1aa1eb91
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
storage/innobase/btr/btr0pcur.c
storage/innobase/btr/btr0pcur.c
+5
-5
storage/innobase/row/row0sel.c
storage/innobase/row/row0sel.c
+2
-0
No files found.
storage/innobase/btr/btr0pcur.c
View file @
6d483cf3
...
...
@@ -124,7 +124,6 @@ btr_pcur_store_position(
ut_ad
(
mtr_memo_contains
(
mtr
,
block
,
MTR_MEMO_PAGE_S_FIX
)
||
mtr_memo_contains
(
mtr
,
block
,
MTR_MEMO_PAGE_X_FIX
));
ut_a
(
cursor
->
latch_mode
!=
BTR_NO_LATCHES
);
if
(
UNIV_UNLIKELY
(
page_get_n_recs
(
page
)
==
0
))
{
/* It must be an empty index tree; NOTE that in this case
...
...
@@ -271,6 +270,7 @@ btr_pcur_restore_position_func(
cursor
->
modify_clock
,
file
,
line
,
mtr
))
{
cursor
->
pos_state
=
BTR_PCUR_IS_POSITIONED
;
cursor
->
latch_mode
=
latch_mode
;
buf_block_dbg_add_level
(
btr_pcur_get_block
(
cursor
),
...
...
@@ -282,9 +282,6 @@ btr_pcur_restore_position_func(
const
rec_t
*
rec
;
const
ulint
*
offsets1
;
const
ulint
*
offsets2
;
#endif
/* UNIV_DEBUG */
cursor
->
latch_mode
=
latch_mode
;
#ifdef UNIV_DEBUG
rec
=
btr_pcur_get_rec
(
cursor
);
heap
=
mem_heap_create
(
256
);
...
...
@@ -305,7 +302,10 @@ btr_pcur_restore_position_func(
/* This is the same record as stored,
may need to be adjusted for BTR_PCUR_BEFORE/AFTER,
depending on search mode and direction. */
cursor
->
pos_state
=
BTR_PCUR_IS_POSITIONED_OPTIMISTIC
;
if
(
btr_pcur_is_on_user_rec
(
cursor
))
{
cursor
->
pos_state
=
BTR_PCUR_IS_POSITIONED_OPTIMISTIC
;
}
return
(
FALSE
);
}
}
...
...
storage/innobase/row/row0sel.c
View file @
6d483cf3
...
...
@@ -3108,6 +3108,8 @@ sel_restore_position_for_mysql(
||
pcur
->
rel_pos
==
BTR_PCUR_AFTER
);
}
else
{
ut_ad
(
pcur
->
pos_state
==
BTR_PCUR_IS_POSITIONED
);
ut_ad
((
pcur
->
rel_pos
==
BTR_PCUR_ON
)
==
btr_pcur_is_on_user_rec
(
pcur
));
}
#endif
...
...
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