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
374ad00b
Commit
374ad00b
authored
May 14, 2008
by
sunny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Fix bug introduced in r2453.
parent
bda75d7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
btr/btr0btr.c
btr/btr0btr.c
+5
-3
No files found.
btr/btr0btr.c
View file @
374ad00b
...
...
@@ -1796,15 +1796,17 @@ btr_page_split_and_insert(
hint_page_no
=
page_no
+
1
;
if
(
page_get_n_recs
(
page
)
==
1
)
{
page_cur_t
pcur
;
/* There is only one record in the index page
therefore we can't split the node in the middle
by default. We need to determine whether the
new record will be inserted to the left or right. */
/* Read the first (and only) record in the page. */
page_cur_set_before_first
(
block
,
page_curso
r
);
page_cur_move_to_next
(
page_curso
r
);
first_rec
=
page_cur_get_rec
(
page_curso
r
);
page_cur_set_before_first
(
block
,
&
pcu
r
);
page_cur_move_to_next
(
&
pcu
r
);
first_rec
=
page_cur_get_rec
(
&
pcu
r
);
offsets
=
rec_get_offsets
(
first_rec
,
cursor
->
index
,
offsets
,
...
...
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