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
9b4c0a1f
Commit
9b4c0a1f
authored
Mar 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysqltest.c:
Better fix for do_sleep(). client/mysqltest.c: Better fix for do_sleep().
parent
5a817d9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
client/mysqltest.c
client/mysqltest.c
+5
-4
No files found.
client/mysqltest.c
View file @
9b4c0a1f
...
@@ -1550,19 +1550,20 @@ int do_sleep(struct st_query *query, my_bool real_sleep)
...
@@ -1550,19 +1550,20 @@ int do_sleep(struct st_query *query, my_bool real_sleep)
char
*
p
=
query
->
first_argument
;
char
*
p
=
query
->
first_argument
;
char
*
sleep_start
,
*
sleep_end
=
query
->
end
;
char
*
sleep_start
,
*
sleep_end
=
query
->
end
;
double
sleep_val
;
double
sleep_val
;
char
*
cmd
=
(
real_sleep
?
"real_sleep"
:
"sleep"
);
while
(
my_isspace
(
charset_info
,
*
p
))
while
(
my_isspace
(
charset_info
,
*
p
))
p
++
;
p
++
;
if
(
!*
p
)
if
(
!*
p
)
die
(
"Missing argument to %
s"
,
cmd
);
die
(
"Missing argument to %
.*s"
,
query
->
first_word_len
,
query
->
query
);
sleep_start
=
p
;
sleep_start
=
p
;
/* Check that arg starts with a digit, not handled by my_strtod */
/* Check that arg starts with a digit, not handled by my_strtod */
if
(
!
my_isdigit
(
charset_info
,
*
sleep_start
))
if
(
!
my_isdigit
(
charset_info
,
*
sleep_start
))
die
(
"Invalid argument to %s
\"
%s
\"
"
,
cmd
,
query
->
first_argument
);
die
(
"Invalid argument to %.*s
\"
%s
\"
"
,
query
->
first_word_len
,
query
->
query
,
query
->
first_argument
);
sleep_val
=
my_strtod
(
sleep_start
,
&
sleep_end
,
&
error
);
sleep_val
=
my_strtod
(
sleep_start
,
&
sleep_end
,
&
error
);
if
(
error
)
if
(
error
)
die
(
"Invalid argument to %s
\"
%s
\"
"
,
cmd
,
query
->
first_argument
);
die
(
"Invalid argument to %.*s
\"
%s
\"
"
,
query
->
first_word_len
,
query
->
query
,
query
->
first_argument
);
/* Fixed sleep time selected by --sleep option */
/* Fixed sleep time selected by --sleep option */
if
(
opt_sleep
&&
!
real_sleep
)
if
(
opt_sleep
&&
!
real_sleep
)
...
...
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