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
d2b852b4
Commit
d2b852b4
authored
Jun 14, 2020
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup, less #ifdef's
parent
7d75e432
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
10 deletions
+8
-10
sql/sql_table.cc
sql/sql_table.cc
+1
-4
sql/wsrep_mysqld.h
sql/wsrep_mysqld.h
+1
-0
storage/example/ha_example.cc
storage/example/ha_example.cc
+2
-2
storage/heap/ha_heap.cc
storage/heap/ha_heap.cc
+0
-2
storage/heap/heapdef.h
storage/heap/heapdef.h
+2
-0
storage/myisam/ha_myisam.cc
storage/myisam/ha_myisam.cc
+0
-2
storage/myisam/myisamdef.h
storage/myisam/myisamdef.h
+2
-0
No files found.
sql/sql_table.cc
View file @
d2b852b4
...
...
@@ -2443,14 +2443,11 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
}
else
{
#ifdef WITH_WSREP
if
(
WSREP
(
thd
)
&&
!
wsrep_should_replicate_ddl
(
thd
,
table_type
->
db_type
))
if
(
WSREP
(
thd
)
&&
!
wsrep_should_replicate_ddl
(
thd
,
table_type
->
db_type
))
{
error
=
1
;
goto
err
;
}
#endif
/*
It could happen that table's share in the table definition cache
...
...
sql/wsrep_mysqld.h
View file @
d2b852b4
...
...
@@ -627,6 +627,7 @@ enum wsrep::streaming_context::fragment_unit wsrep_fragment_unit(ulong unit);
#define wsrep_thr_deinit() do {} while(0)
#define wsrep_init_globals() do {} while(0)
#define wsrep_create_appliers(X) do {} while(0)
#define wsrep_should_replicate_ddl(X,Y) (1)
#endif
/* WITH_WSREP */
...
...
storage/example/ha_example.cc
View file @
d2b852b4
...
...
@@ -215,6 +215,8 @@ static void init_example_psi_keys()
count
=
array_elements
(
all_example_mutexes
);
mysql_mutex_register
(
category
,
all_example_mutexes
,
count
);
}
#else
static
void
init_example_psi_keys
()
{
}
#endif
...
...
@@ -252,9 +254,7 @@ static int example_init_func(void *p)
{
DBUG_ENTER
(
"example_init_func"
);
#ifdef HAVE_PSI_INTERFACE
init_example_psi_keys
();
#endif
example_hton
=
(
handlerton
*
)
p
;
example_hton
->
create
=
example_create_handler
;
...
...
storage/heap/ha_heap.cc
View file @
d2b852b4
...
...
@@ -44,9 +44,7 @@ int heap_init(void *p)
{
handlerton
*
heap_hton
;
#ifdef HAVE_PSI_INTERFACE
init_heap_psi_keys
();
#endif
heap_hton
=
(
handlerton
*
)
p
;
heap_hton
->
db_type
=
DB_TYPE_HEAP
;
...
...
storage/heap/heapdef.h
View file @
d2b852b4
...
...
@@ -110,6 +110,8 @@ extern PSI_memory_key hp_key_memory_HP_KEYDEF;
#ifdef HAVE_PSI_INTERFACE
void
init_heap_psi_keys
();
#else
#define init_heap_psi_keys() do { } while(0)
#endif
/* HAVE_PSI_INTERFACE */
C_MODE_END
...
...
storage/myisam/ha_myisam.cc
View file @
d2b852b4
...
...
@@ -2516,9 +2516,7 @@ static int myisam_init(void *p)
{
handlerton
*
hton
;
#ifdef HAVE_PSI_INTERFACE
init_myisam_psi_keys
();
#endif
/* Set global variables based on startup options */
if
(
myisam_recover_options
&&
myisam_recover_options
!=
HA_RECOVER_OFF
)
...
...
storage/myisam/myisamdef.h
View file @
d2b852b4
...
...
@@ -774,6 +774,8 @@ extern PSI_file_key mi_key_file_datatmp, mi_key_file_dfile, mi_key_file_kfile,
extern
PSI_thread_key
mi_key_thread_find_all_keys
;
void
init_myisam_psi_keys
();
#else
#define init_myisam_psi_keys() do { } while(0)
#endif
/* HAVE_PSI_INTERFACE */
extern
PSI_memory_key
mi_key_memory_MYISAM_SHARE
;
...
...
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