Commit fed043a8 authored by unknown's avatar unknown
Browse files

sql_class.cc, mysql_priv.h:

  Added accessor to handler data.


sql/mysql_priv.h:
  Added accessor to handler data.
sql/sql_class.cc:
  Added accessor to handler data.
parent 88d10859
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -489,6 +489,7 @@ inline THD *_current_thd(void)
my_bool thd_in_lock_tables(const THD *thd);
my_bool thd_tablespace_op(const THD *thd);
const char *thd_proc_info(THD *thd, const char *info);
void **thd_ha_data(const THD *thd, const struct handlerton *hton);

/*
  External variables
+5 −0
Original line number Diff line number Diff line
@@ -186,6 +186,11 @@ const char *thd_proc_info(THD *thd, const char *info)
  return old_info;
}

void **thd_ha_data(const THD *thd, const struct handlerton *hton)
{
  return (void **) thd->ha_data + hton->slot;
}


/*
  Pass nominal parameters to Statement constructor only to ensure that