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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f96f69e4
Commit
f96f69e4
authored
Jul 08, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
srv0srv.c:
Eliminate potential division by zero
parent
7390d81f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
innobase/srv/srv0srv.c
innobase/srv/srv0srv.c
+8
-3
No files found.
innobase/srv/srv0srv.c
View file @
f96f69e4
...
@@ -2148,7 +2148,12 @@ srv_sprintf_innodb_monitor(
...
@@ -2148,7 +2148,12 @@ srv_sprintf_innodb_monitor(
current_time
=
time
(
NULL
);
current_time
=
time
(
NULL
);
time_elapsed
=
difftime
(
current_time
,
srv_last_monitor_time
);
/* We add 0.001 seconds to time_elapsed to prevent division
by zero if two users happen to call SHOW INNODB STATUS at the same
time */
time_elapsed
=
difftime
(
current_time
,
srv_last_monitor_time
)
+
0
.
001
;
srv_last_monitor_time
=
time
(
NULL
);
srv_last_monitor_time
=
time
(
NULL
);
...
@@ -2443,13 +2448,13 @@ loop:
...
@@ -2443,13 +2448,13 @@ loop:
srv_error_monitor_active
=
TRUE
;
srv_error_monitor_active
=
TRUE
;
os_thread_sleep
(
10000000
);
os_thread_sleep
(
10000000
);
/*
printf
(
"Validating has index
\n
"
);
printf
(
"Validating has index
\n
"
);
btr_search_validate
();
btr_search_validate
();
printf
(
"Hash index validated
\n
"
);
printf
(
"Hash index validated
\n
"
);
*/
sync_array_print_long_waits
();
sync_array_print_long_waits
();
/* Flush stdout and stderr so that a database user gets their output
/* Flush stdout and stderr so that a database user gets their output
...
...
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