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
5571d4ae
Commit
5571d4ae
authored
Apr 26, 2010
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btr_page_split_and_insert(): Silence a compiler warning
about possibly uninitialized variable insert_left.
parent
5bad43c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
storage/innodb_plugin/btr/btr0btr.c
storage/innodb_plugin/btr/btr0btr.c
+1
-5
No files found.
storage/innodb_plugin/btr/btr0btr.c
View file @
5571d4ae
...
...
@@ -1932,6 +1932,7 @@ btr_page_split_and_insert(
/* 1. Decide the split record; split_rec == NULL means that the
tuple to be inserted should be the first record on the upper
half-page */
insert_left
=
FALSE
;
if
(
n_iterations
>
0
)
{
direction
=
FSP_UP
;
...
...
@@ -1945,7 +1946,6 @@ btr_page_split_and_insert(
}
else
if
(
btr_page_get_split_rec_to_right
(
cursor
,
&
split_rec
))
{
direction
=
FSP_UP
;
hint_page_no
=
page_no
+
1
;
insert_left
=
FALSE
;
}
else
if
(
btr_page_get_split_rec_to_left
(
cursor
,
&
split_rec
))
{
direction
=
FSP_DOWN
;
...
...
@@ -1968,13 +1968,9 @@ btr_page_split_and_insert(
page_get_infimum_rec
(
page
));
}
else
{
split_rec
=
NULL
;
insert_left
=
FALSE
;
}
}
/* At this point, insert_left is initialized if split_rec == NULL
and may be uninitialized otherwise. */
/* 2. Allocate a new page to the index */
new_block
=
btr_page_alloc
(
cursor
->
index
,
hint_page_no
,
direction
,
btr_page_get_level
(
page
,
mtr
),
mtr
);
...
...
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