From ca5ca4b968297ac4dc5d0850752306b92570b6a1 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 23 Mar 2011 15:29:20 +0100 Subject: MWL#116: group commit Implement binlog_optimize_thread_scheduling option to allow benchmarking the effect of running commit_ordered() for multiple transactions all in one thread. --- sql/log.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sql/log.h') diff --git a/sql/log.h b/sql/log.h index fcc9d5a711b..492a735c0ae 100644 --- a/sql/log.h +++ b/sql/log.h @@ -370,6 +370,14 @@ class MYSQL_BIN_LOG: public TC_LOG, private MYSQL_LOG bool no_auto_events; /* Queue of transactions queued up to participate in group commit. */ group_commit_entry *group_commit_queue; + /* + Condition variable to mark that the group commit queue is busy. + Used when each thread does it's own commit_ordered() (when + binlog_optimize_thread_scheduling=1). + Used with the LOCK_commit_ordered mutex. + */ + my_bool group_commit_queue_busy; + pthread_cond_t COND_queue_busy; /* Total number of committed transactions. */ ulonglong num_commits; /* Number of group commits done. */ -- cgit v1.2.1