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
4fb27949
Commit
4fb27949
authored
Nov 11, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@work.mysql.com:/home/bk/mysql-4.1
into bar.mysql.r18.ru:/usr/home/bar/mysql-4.1.wrk
parents
ae9b4fe2
6a9a51d6
Changes
2
Show 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 @
4fb27949
...
@@ -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 @
4fb27949
...
@@ -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