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
f8bb99bf
Commit
f8bb99bf
authored
Jan 23, 2024
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-32841 Use chrono::duration<double> instead of chrono::duration<float>
Requested by Marko during review
parent
01466adc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
storage/innobase/os/os0file.cc
storage/innobase/os/os0file.cc
+2
-4
tpool/tpool_structs.h
tpool/tpool_structs.h
+2
-2
No files found.
storage/innobase/os/os0file.cc
View file @
f8bb99bf
...
@@ -121,7 +121,7 @@ class io_slots
...
@@ -121,7 +121,7 @@ class io_slots
return
m_cache
.
pos
();
return
m_cache
.
pos
();
}
}
std
::
chrono
::
duration
<
float
>
wait_time
()
std
::
chrono
::
duration
<
double
>
wait_time
()
{
{
return
m_cache
.
wait_time
();
return
m_cache
.
wait_time
();
}
}
...
@@ -167,9 +167,7 @@ void innodb_io_slots_stats(tpool::aio_opcode op, innodb_async_io_stats_t *stats)
...
@@ -167,9 +167,7 @@ void innodb_io_slots_stats(tpool::aio_opcode op, innodb_async_io_stats_t *stats)
io_slots
*
slots
=
op
==
tpool
::
aio_opcode
::
AIO_PREAD
?
read_slots
:
write_slots
;
io_slots
*
slots
=
op
==
tpool
::
aio_opcode
::
AIO_PREAD
?
read_slots
:
write_slots
;
stats
->
pending_ops
=
slots
->
pending_io_count
();
stats
->
pending_ops
=
slots
->
pending_io_count
();
stats
->
slot_wait_time_sec
=
stats
->
slot_wait_time_sec
=
slots
->
wait_time
().
count
();
std
::
chrono
::
duration_cast
<
std
::
chrono
::
duration
<
float
>>
(
slots
->
wait_time
()).
count
();
slots
->
task_group
().
get_stats
(
&
stats
->
completion_stats
);
slots
->
task_group
().
get_stats
(
&
stats
->
completion_stats
);
}
}
...
...
tpool/tpool_structs.h
View file @
f8bb99bf
...
@@ -86,7 +86,7 @@ template<typename T, bool timed=false> class cache
...
@@ -86,7 +86,7 @@ template<typename T, bool timed=false> class cache
Total time spent waiting on entries in cache, inside get()
Total time spent waiting on entries in cache, inside get()
Only valid if timed template parameter is true.
Only valid if timed template parameter is true.
*/
*/
std
::
chrono
::
duration
<
float
>
m_wait_time
;
std
::
chrono
::
duration
<
double
>
m_wait_time
;
private:
private:
...
@@ -205,7 +205,7 @@ template<typename T, bool timed=false> class cache
...
@@ -205,7 +205,7 @@ template<typename T, bool timed=false> class cache
return
m_pos
;
return
m_pos
;
}
}
TPOOL_SUPPRESS_TSAN
std
::
chrono
::
duration
<
float
>
wait_time
()
TPOOL_SUPPRESS_TSAN
std
::
chrono
::
duration
<
double
>
wait_time
()
{
{
return
m_wait_time
;
return
m_wait_time
;
}
}
...
...
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