Commit 059968dc authored by Marko Mäkelä's avatar Marko Mäkelä

Remove a conditionally unused declaration

The embedded server does not HAVE_PSI_STAGE_INTERFACE.
parent 9c29d068
...@@ -355,10 +355,12 @@ static PSI_file_info all_aria_files[]= ...@@ -355,10 +355,12 @@ static PSI_file_info all_aria_files[]=
{ &key_file_control, "control", PSI_FLAG_GLOBAL} { &key_file_control, "control", PSI_FLAG_GLOBAL}
}; };
# ifdef HAVE_PSI_STAGE_INTERFACE
static PSI_stage_info *all_aria_stages[]= static PSI_stage_info *all_aria_stages[]=
{ {
& stage_waiting_for_a_resource & stage_waiting_for_a_resource
}; };
# endif /* HAVE_PSI_STAGE_INTERFACE */
static void init_aria_psi_keys(void) static void init_aria_psi_keys(void)
{ {
...@@ -379,9 +381,10 @@ static void init_aria_psi_keys(void) ...@@ -379,9 +381,10 @@ static void init_aria_psi_keys(void)
count= array_elements(all_aria_files); count= array_elements(all_aria_files);
mysql_file_register(category, all_aria_files, count); mysql_file_register(category, all_aria_files, count);
# ifdef HAVE_PSI_STAGE_INTERFACE
count= array_elements(all_aria_stages); count= array_elements(all_aria_stages);
mysql_stage_register(category, all_aria_stages, count); mysql_stage_register(category, all_aria_stages, count);
# endif /* HAVE_PSI_STAGE_INTERFACE */
} }
#else #else
#define init_aria_psi_keys() /* no-op */ #define init_aria_psi_keys() /* no-op */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment