Hi,
I'm developing monitoring tool in daemon plugin
I'm tyring to access pfs table via low level interface not using sql.
(see below)
-------------------------------------------------------------------------------------
.....
tables.init_one_table(STRING_WITH_LEN("performance_schema"), STRING_WITH_LEN("events_statements_current"),
"events_statements_current", TL_READ);
bool result = open_and_lock_tables(ctx->thd, &tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT);
if (result)
{
sql_print_error("monm plugin error: Can't open the %s.%s table.",dbname,tblname);
}
.....
/* read routine */
------------------------------------------------------------
In open_and_lock_table function, I hava a error.
I found the reason of this error by debugging.
In table_cache.cc, open_table_def() requires .frm file as a table definition.
but above version 10.1.3, there is no frm file for pfs table as I know. right?
Let me know a correct way to get data from pfs table not using sql.
Regards,
Kyungnam.