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
5387af00
Commit
5387af00
authored
Jan 11, 2011
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Plain Diff
Merge of mysql-5.1 into mysql-5.5.
parents
61b5b3e4
c4c94ea0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
mysys/my_getsystime.c
mysys/my_getsystime.c
+7
-1
No files found.
mysys/my_getsystime.c
View file @
5387af00
...
...
@@ -165,7 +165,13 @@ ulonglong my_micro_time_and_time(time_t *time_arg)
mysql_mutex_lock
(
&
THR_LOCK_time
);
cur_gethrtime
=
gethrtime
();
if
((
cur_gethrtime
-
prev_gethrtime
)
>
DELTA_FOR_SECONDS
)
/*
Due to bugs in the Solaris (x86) implementation of gethrtime(),
the time returned by it might not be monotonic. Don't use the
cached time(2) value if this is a case.
*/
if
((
prev_gethrtime
>
cur_gethrtime
)
||
((
cur_gethrtime
-
prev_gethrtime
)
>
DELTA_FOR_SECONDS
))
{
cur_time
=
time
(
0
);
prev_gethrtime
=
cur_gethrtime
;
...
...
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