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
9f019fea
Commit
9f019fea
authored
Nov 11, 2002
by
bar@bar.mysql.r18.ru
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
e8b101a8
a578ef79
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 @
9f019fea
...
...
@@ -91,7 +91,7 @@ void *tree_search_edge(TREE *tree, TREE_ELEMENT **parents,
TREE_ELEMENT
***
last_pos
,
int
child_offs
);
void
*
tree_search_next
(
TREE
*
tree
,
TREE_ELEMENT
***
last_pos
,
int
l_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
);
#ifdef __cplusplus
}
...
...
mysys/tree.c
View file @
9f019fea
...
...
@@ -439,14 +439,14 @@ void *tree_search_next(TREE *tree, TREE_ELEMENT ***last_pos, int l_offs,
Expected that tree is fully balanced
(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
)
{
int
cmp
;
TREE_ELEMENT
*
element
=
tree
->
root
;
double
left
=
1
;
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
)
{
...
...
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