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
24eba429
Commit
24eba429
authored
Jan 13, 2011
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Plain Diff
Merging from mysql-5.1.
parents
ad4c839f
db36f639
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
client/mysqlslap.c
client/mysqlslap.c
+15
-5
No files found.
client/mysqlslap.c
View file @
24eba429
...
@@ -1507,7 +1507,12 @@ generate_primary_key_list(MYSQL *mysql, option_string *engine_stmt)
...
@@ -1507,7 +1507,12 @@ generate_primary_key_list(MYSQL *mysql, option_string *engine_stmt)
exit
(
1
);
exit
(
1
);
}
}
result
=
mysql_store_result
(
mysql
);
if
(
!
(
result
=
mysql_store_result
(
mysql
)))
{
fprintf
(
stderr
,
"%s: Error when storing result: %d %s
\n
"
,
my_progname
,
mysql_errno
(
mysql
),
mysql_error
(
mysql
));
exit
(
1
);
}
primary_keys_number_of
=
mysql_num_rows
(
result
);
primary_keys_number_of
=
mysql_num_rows
(
result
);
/* So why check this? Blackhole :) */
/* So why check this? Blackhole :) */
...
@@ -1879,11 +1884,16 @@ pthread_handler_t run_task(void *p)
...
@@ -1879,11 +1884,16 @@ pthread_handler_t run_task(void *p)
{
{
if
(
mysql_field_count
(
mysql
))
if
(
mysql_field_count
(
mysql
))
{
{
result
=
mysql_store_result
(
mysql
);
if
(
!
(
result
=
mysql_store_result
(
mysql
)))
while
((
row
=
mysql_fetch_row
(
result
)))
fprintf
(
stderr
,
"%s: Error when storing result: %d %s
\n
"
,
my_progname
,
mysql_errno
(
mysql
),
mysql_error
(
mysql
));
else
{
while
((
row
=
mysql_fetch_row
(
result
)))
counter
++
;
counter
++
;
mysql_free_result
(
result
);
mysql_free_result
(
result
);
}
}
}
}
while
(
mysql_next_result
(
mysql
)
==
0
);
}
while
(
mysql_next_result
(
mysql
)
==
0
);
queries
++
;
queries
++
;
...
...
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