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
423f2851
Commit
423f2851
authored
Jul 27, 2001
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ft-update bug fixed
parent
6288cfb8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
13 deletions
+7
-13
myisam/ft_parser.c
myisam/ft_parser.c
+5
-4
myisam/ft_update.c
myisam/ft_update.c
+1
-8
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+1
-1
No files found.
myisam/ft_parser.c
View file @
423f2851
...
@@ -68,6 +68,7 @@ FT_WORD * ft_linearize(MI_INFO *info, uint keynr, byte *keybuf, TREE *wtree)
...
@@ -68,6 +68,7 @@ FT_WORD * ft_linearize(MI_INFO *info, uint keynr, byte *keybuf, TREE *wtree)
{
{
FT_WORD
*
wlist
,
*
p
;
FT_WORD
*
wlist
,
*
p
;
FT_DOCSTAT
docstat
;
FT_DOCSTAT
docstat
;
DBUG_ENTER
(
"ft_linearize"
);
if
((
wlist
=
(
FT_WORD
*
)
my_malloc
(
sizeof
(
FT_WORD
)
*
if
((
wlist
=
(
FT_WORD
*
)
my_malloc
(
sizeof
(
FT_WORD
)
*
(
1
+
wtree
->
elements_in_tree
),
MYF
(
0
))))
(
1
+
wtree
->
elements_in_tree
),
MYF
(
0
))))
...
@@ -85,7 +86,7 @@ FT_WORD * ft_linearize(MI_INFO *info, uint keynr, byte *keybuf, TREE *wtree)
...
@@ -85,7 +86,7 @@ FT_WORD * ft_linearize(MI_INFO *info, uint keynr, byte *keybuf, TREE *wtree)
}
}
delete_tree
(
wtree
);
delete_tree
(
wtree
);
if
(
!
wlist
)
if
(
!
wlist
)
return
NULL
;
DBUG_RETURN
(
NULL
)
;
docstat
.
list
->
pos
=
NULL
;
docstat
.
list
->
pos
=
NULL
;
...
@@ -109,7 +110,7 @@ FT_WORD * ft_linearize(MI_INFO *info, uint keynr, byte *keybuf, TREE *wtree)
...
@@ -109,7 +110,7 @@ FT_WORD * ft_linearize(MI_INFO *info, uint keynr, byte *keybuf, TREE *wtree)
p
->
weight
/=
NORM_IN_USE
;
p
->
weight
/=
NORM_IN_USE
;
}
}
return
wlist
;
DBUG_RETURN
(
wlist
)
;
}
}
#define true_word_char(X) (isalnum(X) || (X)=='_')
#define true_word_char(X) (isalnum(X) || (X)=='_')
...
...
myisam/ft_update.c
View file @
423f2851
...
@@ -177,14 +177,7 @@ int _mi_ft_update(MI_INFO *info, uint keynr, byte *keybuf,
...
@@ -177,14 +177,7 @@ int _mi_ft_update(MI_INFO *info, uint keynr, byte *keybuf,
(
uchar
*
)
old_word
->
pos
,
old_word
->
len
,
(
uchar
*
)
old_word
->
pos
,
old_word
->
len
,
(
uchar
*
)
new_word
->
pos
,
new_word
->
len
,
0
);
(
uchar
*
)
new_word
->
pos
,
new_word
->
len
,
0
);
if
(
cmp
==
0
)
if
(
cmp
==
0
)
{
cmp
=
sgn
(
old_word
->
weight
-
new_word
->
weight
);
double
p
=
(
old_word
->
weight
-
new_word
->
weight
)
/
(
old_word
->
weight
+
new_word
->
weight
);
if
(
p
<
1e-5
)
cmp
=
0
;
else
cmp
=
sgn
(
p
);
}
else
else
cmp
=
sgn
(
cmp
);
cmp
=
sgn
(
cmp
);
...
...
mysql-test/mysql-test-run.sh
View file @
423f2851
...
@@ -160,7 +160,7 @@ while test $# -gt 0; do
...
@@ -160,7 +160,7 @@ while test $# -gt 0; do
SLEEP_TIME
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--sleep=;;"
`
SLEEP_TIME
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--sleep=;;"
`
;;
;;
--mysqld
=
*
)
--mysqld
=
*
)
TMP
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--mysqld
-=
;"
`
TMP
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--mysqld
=;
;"
`
EXTRA_MYSQL_TEST_OPT
=
"
$EXTRA_MYSQL_TEST_OPT
$TMP
"
EXTRA_MYSQL_TEST_OPT
=
"
$EXTRA_MYSQL_TEST_OPT
$TMP
"
EXTRA_SLAVE_MYSQLD_OPT
=
"
$EXTRA_SLAVE_MYSQLD_OPT
$TMP
"
EXTRA_SLAVE_MYSQLD_OPT
=
"
$EXTRA_SLAVE_MYSQLD_OPT
$TMP
"
;;
;;
...
...
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