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
9abc6fd7
Commit
9abc6fd7
authored
Apr 21, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: constexpr PFS_table_context::m_word_size
parent
b59d0762
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
storage/perfschema/pfs_engine_table.cc
storage/perfschema/pfs_engine_table.cc
+2
-4
storage/perfschema/pfs_engine_table.h
storage/perfschema/pfs_engine_table.h
+1
-1
No files found.
storage/perfschema/pfs_engine_table.cc
View file @
9abc6fd7
...
...
@@ -154,7 +154,6 @@ bool PFS_table_context::initialize(void)
m_map
=
context
->
m_map
;
DBUG_ASSERT
(
m_map_size
==
context
->
m_map_size
);
m_map_size
=
context
->
m_map_size
;
m_word_size
=
context
->
m_word_size
;
}
}
else
...
...
@@ -168,7 +167,6 @@ bool PFS_table_context::initialize(void)
/* Initialize a new context, store in TLS. */
m_last_version
=
m_current_version
;
m_map
=
NULL
;
m_word_size
=
sizeof
(
ulong
)
*
8
;
/* Allocate a bitmap to record which threads are materialized. */
if
(
m_map_size
>
0
)
...
...
@@ -190,7 +188,7 @@ bool PFS_table_context::initialize(void)
/* Constructor for global or single thread tables, map size = 0. */
PFS_table_context
::
PFS_table_context
(
ulonglong
current_version
,
bool
restore
,
thread_local_key_t
key
)
:
m_thr_key
(
key
),
m_current_version
(
current_version
),
m_last_version
(
0
),
m_map
(
NULL
),
m_map_size
(
0
),
m_word_size
(
sizeof
(
ulong
)),
m_map
(
NULL
),
m_map_size
(
0
),
m_restore
(
restore
),
m_initialized
(
false
),
m_last_item
(
0
)
{
initialize
();
...
...
@@ -199,7 +197,7 @@ PFS_table_context::PFS_table_context(ulonglong current_version, bool restore, th
/* Constructor for by-thread or aggregate tables, map size = max thread/user/host/account. */
PFS_table_context
::
PFS_table_context
(
ulonglong
current_version
,
ulong
map_size
,
bool
restore
,
thread_local_key_t
key
)
:
m_thr_key
(
key
),
m_current_version
(
current_version
),
m_last_version
(
0
),
m_map
(
NULL
),
m_map_size
(
map_size
),
m_word_size
(
sizeof
(
ulong
)),
m_map
(
NULL
),
m_map_size
(
map_size
),
m_restore
(
restore
),
m_initialized
(
false
),
m_last_item
(
0
)
{
initialize
();
...
...
storage/perfschema/pfs_engine_table.h
View file @
9abc6fd7
...
...
@@ -74,7 +74,7 @@ class PFS_table_context
ulonglong
m_last_version
;
ulong
*
m_map
;
ulong
m_map_size
;
ulong
m_word_size
;
static
constexpr
ulong
m_word_size
=
8
*
sizeof
(
ulong
)
;
bool
m_restore
;
bool
m_initialized
;
ulong
m_last_item
;
...
...
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