summaryrefslogtreecommitdiff
path: root/sql/log.h
diff options
context:
space:
mode:
authorMikael Ronström <mikael@dator9>2011-04-15 15:46:11 +0200
committerMikael Ronström <mikael@dator9>2011-04-15 15:46:11 +0200
commit7b079a3a7e3a7e38353728e8e19a1ea44a2f5778 (patch)
treea3b95707a820bf6af5adbb68c73f6f51dbf5b473 /sql/log.h
parent97036a97a186a7eddf9d36a987338f2144aefa1d (diff)
parent506ff594c8553723770e9f097c0e72c31859d7ad (diff)
downloadmariadb-git-7b079a3a7e3a7e38353728e8e19a1ea44a2f5778.tar.gz
Merge 5.5
Diffstat (limited to 'sql/log.h')
-rw-r--r--sql/log.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/sql/log.h b/sql/log.h
index d287da0dcd1..5d6c5b00012 100644
--- a/sql/log.h
+++ b/sql/log.h
@@ -274,6 +274,16 @@ private:
class MYSQL_BIN_LOG: public TC_LOG, private MYSQL_LOG
{
private:
+#ifdef HAVE_PSI_INTERFACE
+ /** The instrumentation key to use for @ LOCK_index. */
+ PSI_mutex_key m_key_LOCK_index;
+ /** The instrumentation key to use for @ update_cond. */
+ PSI_cond_key m_key_update_cond;
+ /** The instrumentation key to use for opening the log file. */
+ PSI_file_key m_key_file_log;
+ /** The instrumentation key to use for opening the log index file. */
+ PSI_file_key m_key_file_log_index;
+#endif
/* LOCK_log and LOCK_index are inited by init_pthread_objects() */
mysql_mutex_t LOCK_index;
mysql_mutex_t LOCK_prep_xids;
@@ -362,6 +372,19 @@ public:
on exit() - but only during the correct shutdown process
*/
+#ifdef HAVE_PSI_INTERFACE
+ void set_psi_keys(PSI_mutex_key key_LOCK_index,
+ PSI_cond_key key_update_cond,
+ PSI_file_key key_file_log,
+ PSI_file_key key_file_log_index)
+ {
+ m_key_LOCK_index= key_LOCK_index;
+ m_key_update_cond= key_update_cond;
+ m_key_file_log= key_file_log;
+ m_key_file_log_index= key_file_log_index;
+ }
+#endif
+
int open(const char *opt_name);
void close();
int log_xid(THD *thd, my_xid xid);