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
0ee817e7
Commit
0ee817e7
authored
Oct 15, 2003
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
50c8b7c1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
11 deletions
+8
-11
myisam/ft_update.c
myisam/ft_update.c
+5
-7
myisam/ftdefs.h
myisam/ftdefs.h
+1
-1
myisam/mi_check.c
myisam/mi_check.c
+1
-2
mysys/Makefile.am
mysys/Makefile.am
+1
-1
No files found.
myisam/ft_update.c
View file @
0ee817e7
...
@@ -114,9 +114,7 @@ uint _mi_ft_parse(TREE *parsed, MI_INFO *info, uint keynr, const byte *record)
...
@@ -114,9 +114,7 @@ uint _mi_ft_parse(TREE *parsed, MI_INFO *info, uint keynr, const byte *record)
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
FT_WORD
*
_mi_ft_parserecord
(
MI_INFO
*
info
,
uint
keynr
,
FT_WORD
*
_mi_ft_parserecord
(
MI_INFO
*
info
,
uint
keynr
,
const
byte
*
record
)
byte
*
keybuf
__attribute__
((
unused
)),
const
byte
*
record
)
{
{
TREE
ptree
;
TREE
ptree
;
DBUG_ENTER
(
"_mi_ft_parserecord"
);
DBUG_ENTER
(
"_mi_ft_parserecord"
);
...
@@ -199,9 +197,9 @@ int _mi_ft_update(MI_INFO *info, uint keynr, byte *keybuf,
...
@@ -199,9 +197,9 @@ int _mi_ft_update(MI_INFO *info, uint keynr, byte *keybuf,
int
cmp
,
cmp2
;
int
cmp
,
cmp2
;
DBUG_ENTER
(
"_mi_ft_update"
);
DBUG_ENTER
(
"_mi_ft_update"
);
if
(
!
(
old_word
=
oldlist
=
_mi_ft_parserecord
(
info
,
keynr
,
keybuf
,
oldrec
)))
if
(
!
(
old_word
=
oldlist
=
_mi_ft_parserecord
(
info
,
keynr
,
oldrec
)))
goto
err0
;
goto
err0
;
if
(
!
(
new_word
=
newlist
=
_mi_ft_parserecord
(
info
,
keynr
,
keybuf
,
newrec
)))
if
(
!
(
new_word
=
newlist
=
_mi_ft_parserecord
(
info
,
keynr
,
newrec
)))
goto
err1
;
goto
err1
;
error
=
0
;
error
=
0
;
...
@@ -249,7 +247,7 @@ int _mi_ft_add(MI_INFO *info, uint keynr, byte *keybuf, const byte *record,
...
@@ -249,7 +247,7 @@ int _mi_ft_add(MI_INFO *info, uint keynr, byte *keybuf, const byte *record,
FT_WORD
*
wlist
;
FT_WORD
*
wlist
;
DBUG_ENTER
(
"_mi_ft_add"
);
DBUG_ENTER
(
"_mi_ft_add"
);
if
((
wlist
=
_mi_ft_parserecord
(
info
,
keynr
,
keybuf
,
record
)))
if
((
wlist
=
_mi_ft_parserecord
(
info
,
keynr
,
record
)))
{
{
error
=
_mi_ft_store
(
info
,
keynr
,
keybuf
,
wlist
,
pos
);
error
=
_mi_ft_store
(
info
,
keynr
,
keybuf
,
wlist
,
pos
);
my_free
((
char
*
)
wlist
,
MYF
(
0
));
my_free
((
char
*
)
wlist
,
MYF
(
0
));
...
@@ -268,7 +266,7 @@ int _mi_ft_del(MI_INFO *info, uint keynr, byte *keybuf, const byte *record,
...
@@ -268,7 +266,7 @@ int _mi_ft_del(MI_INFO *info, uint keynr, byte *keybuf, const byte *record,
DBUG_ENTER
(
"_mi_ft_del"
);
DBUG_ENTER
(
"_mi_ft_del"
);
DBUG_PRINT
(
"enter"
,(
"keynr: %d"
,
keynr
));
DBUG_PRINT
(
"enter"
,(
"keynr: %d"
,
keynr
));
if
((
wlist
=
_mi_ft_parserecord
(
info
,
keynr
,
keybuf
,
record
)))
if
((
wlist
=
_mi_ft_parserecord
(
info
,
keynr
,
record
)))
{
{
error
=
_mi_ft_erase
(
info
,
keynr
,
keybuf
,
wlist
,
pos
);
error
=
_mi_ft_erase
(
info
,
keynr
,
keybuf
,
wlist
,
pos
);
my_free
((
char
*
)
wlist
,
MYF
(
0
));
my_free
((
char
*
)
wlist
,
MYF
(
0
));
...
...
myisam/ftdefs.h
View file @
0ee817e7
...
@@ -124,7 +124,7 @@ uint _mi_ft_segiterator(FT_SEG_ITERATOR *);
...
@@ -124,7 +124,7 @@ uint _mi_ft_segiterator(FT_SEG_ITERATOR *);
void
ft_parse_init
(
TREE
*
,
CHARSET_INFO
*
);
void
ft_parse_init
(
TREE
*
,
CHARSET_INFO
*
);
int
ft_parse
(
TREE
*
,
byte
*
,
int
);
int
ft_parse
(
TREE
*
,
byte
*
,
int
);
FT_WORD
*
ft_linearize
(
TREE
*
);
FT_WORD
*
ft_linearize
(
TREE
*
);
FT_WORD
*
_mi_ft_parserecord
(
MI_INFO
*
,
uint
,
byte
*
,
const
byte
*
);
FT_WORD
*
_mi_ft_parserecord
(
MI_INFO
*
,
uint
,
const
byte
*
);
uint
_mi_ft_parse
(
TREE
*
parsed
,
MI_INFO
*
info
,
uint
keynr
,
const
byte
*
record
);
uint
_mi_ft_parse
(
TREE
*
parsed
,
MI_INFO
*
info
,
uint
keynr
,
const
byte
*
record
);
extern
const
struct
_ft_vft
_ft_vft_nlq
;
extern
const
struct
_ft_vft
_ft_vft_nlq
;
...
...
myisam/mi_check.c
View file @
0ee817e7
...
@@ -2575,8 +2575,7 @@ static int sort_ft_key_read(MI_SORT_PARAM *sort_param, void *key)
...
@@ -2575,8 +2575,7 @@ static int sort_ft_key_read(MI_SORT_PARAM *sort_param, void *key)
my_free
((
char
*
)
wptr
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
((
char
*
)
wptr
,
MYF
(
MY_ALLOW_ZERO_PTR
));
if
((
error
=
sort_get_next_record
(
sort_param
)))
if
((
error
=
sort_get_next_record
(
sort_param
)))
DBUG_RETURN
(
error
);
DBUG_RETURN
(
error
);
if
(
!
(
wptr
=
_mi_ft_parserecord
(
info
,
sort_param
->
key
,
if
(
!
(
wptr
=
_mi_ft_parserecord
(
info
,
sort_param
->
key
,
sort_param
->
record
)))
key
,
sort_param
->
record
)))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
if
(
wptr
->
pos
)
if
(
wptr
->
pos
)
break
;
break
;
...
...
mysys/Makefile.am
View file @
0ee817e7
...
@@ -39,7 +39,7 @@ libmysys_a_SOURCES = my_init.c my_getwd.c mf_getdate.c\
...
@@ -39,7 +39,7 @@ libmysys_a_SOURCES = my_init.c my_getwd.c mf_getdate.c\
mf_format.c mf_same.c mf_dirname.c mf_fn_ext.c
\
mf_format.c mf_same.c mf_dirname.c mf_fn_ext.c
\
my_symlink.c my_symlink2.c
\
my_symlink.c my_symlink2.c
\
mf_pack.c mf_unixpath.c mf_strip.c
\
mf_pack.c mf_unixpath.c mf_strip.c
\
mf_
soundex.c mf_
wcomp.c mf_wfile.c
\
mf_wcomp.c mf_wfile.c
\
mf_qsort.c mf_qsort2.c mf_sort.c
\
mf_qsort.c mf_qsort2.c mf_sort.c
\
ptr_cmp.c mf_radix.c queues.c
\
ptr_cmp.c mf_radix.c queues.c
\
tree.c list.c hash.c array.c string.c typelib.c
\
tree.c list.c hash.c array.c string.c typelib.c
\
...
...
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