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
3b3f9315
Commit
3b3f9315
authored
Mar 21, 2020
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Discovery counters: my_atomic to Atomic_counter
parent
a39d92ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sql/handler.cc
sql/handler.cc
+6
-6
No files found.
sql/handler.cc
View file @
3b3f9315
...
...
@@ -440,9 +440,9 @@ static int ha_finish_errors(void)
return
0
;
}
static
volatile
int32
need_full_discover_for_existence
=
0
;
static
volatile
int32
engines_with_discover_file_names
=
0
;
static
volatile
int32
engines_with_discover
=
0
;
static
Atomic_counter
<
int32
>
need_full_discover_for_existence
(
0
)
;
static
Atomic_counter
<
int32
>
engines_with_discover_file_names
(
0
)
;
static
Atomic_counter
<
int32
>
engines_with_discover
(
0
)
;
static
int
full_discover_for_existence
(
handlerton
*
,
const
char
*
,
const
char
*
)
{
return
0
;
}
...
...
@@ -464,13 +464,13 @@ static int hton_ext_based_table_discovery(handlerton *hton, LEX_CSTRING *db,
static
void
update_discovery_counters
(
handlerton
*
hton
,
int
val
)
{
if
(
hton
->
discover_table_existence
==
full_discover_for_existence
)
my_atomic_add32
(
&
need_full_discover_for_existence
,
val
)
;
need_full_discover_for_existence
+=
val
;
if
(
hton
->
discover_table_names
&&
hton
->
tablefile_extensions
[
0
])
my_atomic_add32
(
&
engines_with_discover_file_names
,
val
)
;
engines_with_discover_file_names
+=
val
;
if
(
hton
->
discover_table
)
my_atomic_add32
(
&
engines_with_discover
,
val
)
;
engines_with_discover
+=
val
;
}
int
ha_finalize_handlerton
(
st_plugin_int
*
plugin
)
...
...
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