Skip to content
Permalink
Browse files

Remove a conditionally unused declaration

The embedded server does not HAVE_PSI_STAGE_INTERFACE.
  • Loading branch information...
dr-m committed Jul 19, 2019
1 parent 9c29d06 commit 059968dc5dbe834a9c7119b282d7c63a1261b44f
Showing with 4 additions and 1 deletion.
  1. +4 −1 storage/maria/ha_maria.cc
@@ -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)
{
@@ -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 */

0 comments on commit 059968d

Please sign in to comment.
You can’t perform that action at this time.