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
0be3c555
Commit
0be3c555
authored
Nov 11, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mi_write: fix for ft2 when found word (in the tree) has different length as the word to insert
parent
38cae36c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
myisam/mi_check.c
myisam/mi_check.c
+8
-0
myisam/mi_write.c
myisam/mi_write.c
+1
-0
No files found.
myisam/mi_check.c
View file @
0be3c555
...
...
@@ -656,6 +656,14 @@ static int chk_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
if
(
chk_index_down
(
param
,
info
,
&
info
->
s
->
ft2_keyinfo
,
record
,
temp_buff
,
&
tmp_keys
,
key_checksum
,
1
))
goto
err
;
if
(
tmp_keys
+
subkeys
)
{
mi_check_print_error
(
param
,
"Number of words in the 2nd level tree "
"does not match the number in the header. "
"Parent word in on the page %s, offset %d"
,
llstr
(
page
,
llbuff
),
old_keypos
-
buff
);
goto
err
;
}
(
*
keys
)
+=
tmp_keys
-
1
;
continue
;
}
...
...
myisam/mi_write.c
View file @
0be3c555
...
...
@@ -372,6 +372,7 @@ static int w_search(register MI_INFO *info, register MI_KEYDEF *keyinfo,
/* popular word. two-level tree. going down */
my_off_t
root
=
info
->
dupp_key_pos
;
keyinfo
=&
info
->
s
->
ft2_keyinfo
;
get_key_full_length_rdonly
(
off
,
key
);
key
+=
off
;
keypos
-=
keyinfo
->
keylength
+
nod_flag
;
/* we'll modify key entry 'in vivo' */
error
=
_mi_ck_real_write_btree
(
info
,
keyinfo
,
key
,
0
,
...
...
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