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
70fa527d
Commit
70fa527d
authored
Mar 13, 2007
by
brian@zim.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up 4 pushbuild warnings caught by Windows.
parent
8623103d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
client/mysqlslap.c
client/mysqlslap.c
+7
-5
No files found.
client/mysqlslap.c
View file @
70fa527d
...
@@ -1037,7 +1037,7 @@ get_options(int *argc,char ***argv)
...
@@ -1037,7 +1037,7 @@ get_options(int *argc,char ***argv)
if
(
auto_generate_sql
&&
if
(
auto_generate_sql
&&
((
auto_generate_sql_autoincrement
==
FALSE
)
||
((
auto_generate_sql_autoincrement
==
FALSE
)
||
(
auto_generate_sql_guid_primary
==
FALSE
))
&&
(
auto_generate_sql_guid_primary
==
FALSE
))
&&
auto_generate_sql_type
==
'k'
)
auto_generate_sql_type
[
0
]
==
'k'
)
{
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"%s: Can't perform key test without a primary key!
\n
"
,
"%s: Can't perform key test without a primary key!
\n
"
,
...
@@ -1290,7 +1290,8 @@ generate_primary_key_list(MYSQL *mysql, statement *engine_stmt)
...
@@ -1290,7 +1290,8 @@ generate_primary_key_list(MYSQL *mysql, statement *engine_stmt)
strstr
(
engine_stmt
->
string
,
"blackhole"
)))
strstr
(
engine_stmt
->
string
,
"blackhole"
)))
{
{
primary_keys_number_of
=
1
;
primary_keys_number_of
=
1
;
primary_keys
=
(
char
**
)
my_malloc
(
sizeof
(
char
*
)
*
primary_keys_number_of
,
primary_keys
=
(
char
**
)
my_malloc
((
uint
)(
sizeof
(
char
*
)
*
primary_keys_number_of
),
MYF
(
MY_ZEROFILL
|
MY_FAE
|
MY_WME
));
MYF
(
MY_ZEROFILL
|
MY_FAE
|
MY_WME
));
/* Yes, we strdup a const string to simplify the interface */
/* Yes, we strdup a const string to simplify the interface */
primary_keys
[
0
]
=
my_strdup
(
"796c4422-1d94-102a-9d6d-00e0812d"
,
MYF
(
0
));
primary_keys
[
0
]
=
my_strdup
(
"796c4422-1d94-102a-9d6d-00e0812d"
,
MYF
(
0
));
...
@@ -1315,7 +1316,8 @@ generate_primary_key_list(MYSQL *mysql, statement *engine_stmt)
...
@@ -1315,7 +1316,8 @@ generate_primary_key_list(MYSQL *mysql, statement *engine_stmt)
/*
/*
We create the structure and loop and create the items.
We create the structure and loop and create the items.
*/
*/
primary_keys
=
(
char
**
)
my_malloc
(
sizeof
(
char
*
)
*
primary_keys_number_of
,
primary_keys
=
(
char
**
)
my_malloc
((
uint
)(
sizeof
(
char
*
)
*
primary_keys_number_of
),
MYF
(
MY_ZEROFILL
|
MY_FAE
|
MY_WME
));
MYF
(
MY_ZEROFILL
|
MY_FAE
|
MY_WME
));
row
=
mysql_fetch_row
(
result
);
row
=
mysql_fetch_row
(
result
);
for
(
counter
=
0
;
counter
<
primary_keys_number_of
;
for
(
counter
=
0
;
counter
<
primary_keys_number_of
;
...
@@ -1657,7 +1659,7 @@ run_task(thread_context *con)
...
@@ -1657,7 +1659,7 @@ run_task(thread_context *con)
(
ptr
->
type
==
SELECT_TYPE_REQUIRES_PREFIX
))
(
ptr
->
type
==
SELECT_TYPE_REQUIRES_PREFIX
))
{
{
int
length
;
int
length
;
long
int
key_val
;
unsigned
int
key_val
;
char
*
key
;
char
*
key
;
char
buffer
[
HUGE_STRING_LENGTH
];
char
buffer
[
HUGE_STRING_LENGTH
];
...
@@ -1671,7 +1673,7 @@ run_task(thread_context *con)
...
@@ -1671,7 +1673,7 @@ run_task(thread_context *con)
DBUG_ASSERT
(
primary_keys_number_of
);
DBUG_ASSERT
(
primary_keys_number_of
);
if
(
primary_keys_number_of
)
if
(
primary_keys_number_of
)
{
{
key_val
=
random
()
%
primary_keys_number_of
;
key_val
=
(
unsigned
int
)(
random
()
%
primary_keys_number_of
)
;
key
=
primary_keys
[
key_val
];
key
=
primary_keys
[
key_val
];
DBUG_ASSERT
(
key
);
DBUG_ASSERT
(
key
);
...
...
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