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
10ba987c
Commit
10ba987c
authored
Nov 11, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for HEAP rb-tree indexes and BIG_TABLES problem (serg: thanks for discovery)
parent
828c0e9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/my_tree.h
include/my_tree.h
+1
-1
mysys/tree.c
mysys/tree.c
+2
-2
No files found.
include/my_tree.h
View file @
10ba987c
...
@@ -91,7 +91,7 @@ void *tree_search_edge(TREE *tree, TREE_ELEMENT **parents,
...
@@ -91,7 +91,7 @@ void *tree_search_edge(TREE *tree, TREE_ELEMENT **parents,
TREE_ELEMENT
***
last_pos
,
int
child_offs
);
TREE_ELEMENT
***
last_pos
,
int
child_offs
);
void
*
tree_search_next
(
TREE
*
tree
,
TREE_ELEMENT
***
last_pos
,
int
l_offs
,
void
*
tree_search_next
(
TREE
*
tree
,
TREE_ELEMENT
***
last_pos
,
int
l_offs
,
int
r_offs
);
int
r_offs
);
uint
tree_record_pos
(
TREE
*
tree
,
const
void
*
key
,
ha_rows
tree_record_pos
(
TREE
*
tree
,
const
void
*
key
,
enum
ha_rkey_function
search_flag
,
void
*
custom_arg
);
enum
ha_rkey_function
search_flag
,
void
*
custom_arg
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
mysys/tree.c
View file @
10ba987c
...
@@ -439,14 +439,14 @@ void *tree_search_next(TREE *tree, TREE_ELEMENT ***last_pos, int l_offs,
...
@@ -439,14 +439,14 @@ void *tree_search_next(TREE *tree, TREE_ELEMENT ***last_pos, int l_offs,
Expected that tree is fully balanced
Expected that tree is fully balanced
(each path from root to leaf has the same length)
(each path from root to leaf has the same length)
*/
*/
uint
tree_record_pos
(
TREE
*
tree
,
const
void
*
key
,
ha_rows
tree_record_pos
(
TREE
*
tree
,
const
void
*
key
,
enum
ha_rkey_function
flag
,
void
*
custom_arg
)
enum
ha_rkey_function
flag
,
void
*
custom_arg
)
{
{
int
cmp
;
int
cmp
;
TREE_ELEMENT
*
element
=
tree
->
root
;
TREE_ELEMENT
*
element
=
tree
->
root
;
double
left
=
1
;
double
left
=
1
;
double
right
=
tree
->
elements_in_tree
;
double
right
=
tree
->
elements_in_tree
;
uint
last_equal_pos
=
HA_POS_ERROR
;
ha_rows
last_equal_pos
=
HA_POS_ERROR
;
while
(
element
!=
&
tree
->
null_element
)
while
(
element
!=
&
tree
->
null_element
)
{
{
...
...
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