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
d63db001
Commit
d63db001
authored
Sep 24, 2010
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Plain Diff
Merge of mysql-5.1-bugteam into mysql-5.5-merge.
parents
060289e9
58dfba28
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
23 deletions
+9
-23
storage/myisam/mi_range.c
storage/myisam/mi_range.c
+1
-2
storage/myisam/mi_search.c
storage/myisam/mi_search.c
+3
-7
storage/myisam/rt_index.c
storage/myisam/rt_index.c
+2
-6
storage/myisam/rt_split.c
storage/myisam/rt_split.c
+3
-8
No files found.
storage/myisam/mi_range.c
View file @
d63db001
...
@@ -193,12 +193,11 @@ static double _mi_search_pos(register MI_INFO *info,
...
@@ -193,12 +193,11 @@ static double _mi_search_pos(register MI_INFO *info,
register
my_off_t
pos
)
register
my_off_t
pos
)
{
{
int
flag
;
int
flag
;
uint
nod_flag
,
keynr
,
max_keynr
;
uint
nod_flag
,
keynr
,
UNINIT_VAR
(
max_keynr
)
;
my_bool
after_key
;
my_bool
after_key
;
uchar
*
keypos
,
*
buff
;
uchar
*
keypos
,
*
buff
;
double
offset
;
double
offset
;
DBUG_ENTER
(
"_mi_search_pos"
);
DBUG_ENTER
(
"_mi_search_pos"
);
LINT_INIT
(
max_keynr
);
if
(
pos
==
HA_OFFSET_ERROR
)
if
(
pos
==
HA_OFFSET_ERROR
)
DBUG_RETURN
(
0
.
5
);
DBUG_RETURN
(
0
.
5
);
...
...
storage/myisam/mi_search.c
View file @
d63db001
...
@@ -296,9 +296,9 @@ int _mi_prefix_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page,
...
@@ -296,9 +296,9 @@ int _mi_prefix_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page,
flag is the value returned by ha_key_cmp and as treated as final
flag is the value returned by ha_key_cmp and as treated as final
*/
*/
int
flag
=
0
,
my_flag
=-
1
;
int
flag
=
0
,
my_flag
=-
1
;
uint
nod_flag
,
length
,
len
,
matched
,
cmplen
,
kseg_len
;
uint
nod_flag
,
UNINIT_VAR
(
length
)
,
len
,
matched
,
cmplen
,
kseg_len
;
uint
prefix_len
,
suffix_len
;
uint
UNINIT_VAR
(
prefix_len
),
suffix_len
;
int
key_len_skip
,
seg_len_pack
,
key_len_left
;
int
key_len_skip
,
UNINIT_VAR
(
seg_len_pack
)
,
key_len_left
;
uchar
*
end
,
*
kseg
,
*
vseg
;
uchar
*
end
,
*
kseg
,
*
vseg
;
uchar
*
sort_order
=
keyinfo
->
seg
->
charset
->
sort_order
;
uchar
*
sort_order
=
keyinfo
->
seg
->
charset
->
sort_order
;
uchar
tt_buff
[
MI_MAX_KEY_BUFF
+
2
],
*
t_buff
=
tt_buff
+
2
;
uchar
tt_buff
[
MI_MAX_KEY_BUFF
+
2
],
*
t_buff
=
tt_buff
+
2
;
...
@@ -308,10 +308,6 @@ int _mi_prefix_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page,
...
@@ -308,10 +308,6 @@ int _mi_prefix_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page,
uint
length_pack
;
uint
length_pack
;
DBUG_ENTER
(
"_mi_prefix_search"
);
DBUG_ENTER
(
"_mi_prefix_search"
);
LINT_INIT
(
length
);
LINT_INIT
(
prefix_len
);
LINT_INIT
(
seg_len_pack
);
t_buff
[
0
]
=
0
;
/* Avoid bugs */
t_buff
[
0
]
=
0
;
/* Avoid bugs */
end
=
page
+
mi_getint
(
page
);
end
=
page
+
mi_getint
(
page
);
nod_flag
=
mi_test_if_nod
(
page
);
nod_flag
=
mi_test_if_nod
(
page
);
...
...
storage/myisam/rt_index.c
View file @
d63db001
...
@@ -481,17 +481,13 @@ static uchar *rtree_pick_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *key,
...
@@ -481,17 +481,13 @@ static uchar *rtree_pick_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *key,
uint
key_length
,
uchar
*
page_buf
,
uint
nod_flag
)
uint
key_length
,
uchar
*
page_buf
,
uint
nod_flag
)
{
{
double
increase
;
double
increase
;
double
best_incr
;
double
UNINIT_VAR
(
best_incr
)
;
double
area
;
double
area
;
double
best_area
;
double
UNINIT_VAR
(
best_area
)
;
uchar
*
best_key
=
NULL
;
uchar
*
best_key
=
NULL
;
uchar
*
k
=
rt_PAGE_FIRST_KEY
(
page_buf
,
nod_flag
);
uchar
*
k
=
rt_PAGE_FIRST_KEY
(
page_buf
,
nod_flag
);
uchar
*
last
=
rt_PAGE_END
(
page_buf
);
uchar
*
last
=
rt_PAGE_END
(
page_buf
);
LINT_INIT
(
best_area
);
LINT_INIT
(
best_key
);
LINT_INIT
(
best_incr
);
for
(;
k
<
last
;
k
=
rt_PAGE_NEXT_KEY
(
k
,
key_length
,
nod_flag
))
for
(;
k
<
last
;
k
=
rt_PAGE_NEXT_KEY
(
k
,
key_length
,
nod_flag
))
{
{
/* The following is safe as -1.0 is an exact number */
/* The following is safe as -1.0 is an exact number */
...
...
storage/myisam/rt_split.c
View file @
d63db001
...
@@ -178,18 +178,13 @@ static int split_rtree_node(SplitStruct *node, int n_entries,
...
@@ -178,18 +178,13 @@ static int split_rtree_node(SplitStruct *node, int n_entries,
double
**
d_buffer
,
int
n_dim
)
double
**
d_buffer
,
int
n_dim
)
{
{
SplitStruct
*
cur
;
SplitStruct
*
cur
;
SplitStruct
*
a
;
SplitStruct
*
UNINIT_VAR
(
a
),
*
UNINIT_VAR
(
b
);
SplitStruct
*
b
;
double
*
g1
=
reserve_coords
(
d_buffer
,
n_dim
);
double
*
g1
=
reserve_coords
(
d_buffer
,
n_dim
);
double
*
g2
=
reserve_coords
(
d_buffer
,
n_dim
);
double
*
g2
=
reserve_coords
(
d_buffer
,
n_dim
);
SplitStruct
*
next
;
SplitStruct
*
UNINIT_VAR
(
next
)
;
int
next_node
;
int
UNINIT_VAR
(
next_node
)
;
int
i
;
int
i
;
SplitStruct
*
end
=
node
+
n_entries
;
SplitStruct
*
end
=
node
+
n_entries
;
LINT_INIT
(
a
);
LINT_INIT
(
b
);
LINT_INIT
(
next
);
LINT_INIT
(
next_node
);
if
(
all_size
<
min_size
*
2
)
if
(
all_size
<
min_size
*
2
)
{
{
...
...
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