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
a2689bae
Commit
a2689bae
authored
Dec 29, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after pull fixes
parent
49e294de
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
17 deletions
+22
-17
client/mysqlslap.c
client/mysqlslap.c
+2
-2
include/plugin.h
include/plugin.h
+6
-3
sql/sql_plugin.cc
sql/sql_plugin.cc
+7
-7
sql/sql_plugin.h
sql/sql_plugin.h
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+6
-4
No files found.
client/mysqlslap.c
View file @
a2689bae
...
...
@@ -220,6 +220,7 @@ int main(int argc, char **argv)
int
client_flag
=
0
;
double
load_difference
;
double
query_difference
;
statement
*
eptr
;
int
x
;
DBUG_ENTER
(
"main"
);
...
...
@@ -278,7 +279,6 @@ int main(int argc, char **argv)
}
// Main interations loop
statement
*
eptr
;
for
(
eptr
=
engine_statements
;
eptr
;
eptr
=
eptr
->
next
)
{
if
(
!
opt_silent
)
...
...
@@ -1069,11 +1069,11 @@ run_scheduler(statement *stmts,
ulonglong
client_limit
=
0
;
File
lock_file
;
struct
timeval
start_time
,
end_time
;
DBUG_ENTER
(
"run_scheduler"
);
if
(
limit
)
client_limit
=
limit
/
concur
;
DBUG_ENTER
(
"run_scheduler"
);
/* reset to 0 */
children_spawned
=
0
;
...
...
include/plugin.h
View file @
a2689bae
...
...
@@ -138,10 +138,13 @@ enum enum_ft_token_type
and 0 means neither operator was used.
weight_adjust: A weighting factor that determines how much a match
for the word counts.
Can be used to increase or decrease the word's
importance
.
for the word counts.
Positive values increase, negative - decrease the
relative word's importance in the query
.
wasign: The sign of the weight_adjust value.
wasign: The sign of the word's weight in the query. If it's non-negative
the match for the word will increase document relevance, if it's
negative - decrease (the word becomes a "noise word", the less of it the
better).
trunc: Corresponds to the '*' operator in the default setting of the
ft_boolean_syntax system variable.
...
...
sql/sql_plugin.cc
View file @
a2689bae
...
...
@@ -21,11 +21,11 @@
char
*
opt_plugin_dir_ptr
;
char
opt_plugin_dir
[
FN_REFLEN
];
const
char
*
plugin_type_names
[]
=
LEX_STRING
plugin_type_names
[]
=
{
"UDF"
,
"STORAGE ENGINE"
,
"FTPARSER"
{
STRING_WITH_LEN
(
"UDF"
)
}
,
{
STRING_WITH_LEN
(
"STORAGE ENGINE"
)
}
,
{
STRING_WITH_LEN
(
"FTPARSER"
)
}
};
static
const
char
*
plugin_interface_version_sym
=
"_mysql_plugin_interface_version_"
;
...
...
@@ -43,7 +43,7 @@ static int min_plugin_info_interface_version[MYSQL_MAX_PLUGIN_TYPE_NUM]=
static
int
cur_plugin_info_interface_version
[
MYSQL_MAX_PLUGIN_TYPE_NUM
]
=
{
0x0000
,
/* UDF: not implemented */
0x0000
,
/* STORAGE ENGINE: not implemented */
MYSQL_HANDLERTON_INTERFACE_VERSION
,
MYSQL_FTPARSER_INTERFACE_VERSION
};
static
DYNAMIC_ARRAY
plugin_dl_array
;
...
...
@@ -343,8 +343,8 @@ static my_bool plugin_add(LEX_STRING *name, LEX_STRING *dl, int report)
{
char
buf
[
256
];
strxnmov
(
buf
,
sizeof
(
buf
)
-
1
,
"API version for "
,
plugin_type_names
[
plugin
->
type
]
,
" plugin is too different"
,
NullS
);
plugin_type_names
[
plugin
->
type
]
.
str
,
" plugin is too different"
,
NullS
);
if
(
report
&
REPORT_TO_USER
)
my_error
(
ER_CANT_OPEN_LIBRARY
,
MYF
(
0
),
dl
->
str
,
0
,
buf
);
if
(
report
&
REPORT_TO_LOG
)
...
...
sql/sql_plugin.h
View file @
a2689bae
...
...
@@ -53,7 +53,7 @@ struct st_plugin_int
extern
char
*
opt_plugin_dir_ptr
;
extern
char
opt_plugin_dir
[
FN_REFLEN
];
extern
const
char
*
plugin_type_names
[];
extern
LEX_STRING
plugin_type_names
[];
extern
int
plugin_init
(
void
);
extern
void
plugin_load
(
void
);
extern
void
plugin_free
(
void
);
...
...
sql/sql_show.cc
View file @
a2689bae
...
...
@@ -135,7 +135,9 @@ static my_bool show_plugins(THD *thd, st_plugin_int *plugin,
DBUG_ASSERT
(
0
);
}
table
->
field
[
3
]
->
store
(
STRING_WITH_LEN
(
plugin_type_names
[
plug
->
type
]),
cs
);
table
->
field
[
3
]
->
store
(
plugin_type_names
[
plug
->
type
].
str
,
plugin_type_names
[
plug
->
type
].
length
,
cs
);
table
->
field
[
4
]
->
store
(
version_buf
,
make_version_string
(
version_buf
,
sizeof
(
version_buf
),
*
(
uint
*
)
plug
->
info
),
cs
);
...
...
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