Skip to content

Commit

Permalink
Remove a conditionally unused declaration
Browse files Browse the repository at this point in the history
The embedded server does not HAVE_PSI_STAGE_INTERFACE.
  • Loading branch information
dr-m committed Jul 19, 2019
1 parent 9c29d06 commit 059968d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion storage/maria/ha_maria.cc
Expand Up @@ -355,10 +355,12 @@ static PSI_file_info all_aria_files[]=
{ &key_file_control, "control", PSI_FLAG_GLOBAL}
};

# ifdef HAVE_PSI_STAGE_INTERFACE
static PSI_stage_info *all_aria_stages[]=
{
& stage_waiting_for_a_resource
};
# endif /* HAVE_PSI_STAGE_INTERFACE */

static void init_aria_psi_keys(void)
{
Expand All @@ -379,9 +381,10 @@ static void init_aria_psi_keys(void)

count= array_elements(all_aria_files);
mysql_file_register(category, all_aria_files, count);

# ifdef HAVE_PSI_STAGE_INTERFACE
count= array_elements(all_aria_stages);
mysql_stage_register(category, all_aria_stages, count);
# endif /* HAVE_PSI_STAGE_INTERFACE */
}
#else
#define init_aria_psi_keys() /* no-op */
Expand Down

0 comments on commit 059968d

Please sign in to comment.